HTML的连接到网络问题

<!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <title>Document</title> </head> <body> <fieldset> <legend>注册区域</legend> <form action="http://192.168.1.3:10009">//-----------------这里的问题----------------------------- <Table border="1" bordercolordark="#0066ff" width="70%" cellpadding="10" cellspacing="0"> <tr > <th colspan="2">注册页面</th>` </tr>
<tr > <td>用户名:</td> <td> <input type="text" name="user"> </td> </tr>
<tr > <th colspan="2"> <input type="submit" value="提交数据"> <input type="reset" value="清除数据"> </th> </tr> </Table>
</form></fieldset> </body></html>
一个带提交的HTML.
-----------------------------------------------------------------------------------
import java.net.*;import java.io.*;
class RegServer { public static void main(String[] args) throws Exception { ServerSocket ss = new ServerSocket(10009);
Socket s= ss.accept();
InputStream in = s.getInputStream();
byte[] buf = new byte[1024];
int len=in.read(buf);
System.out.println(new String(buf,0,len));
OutputStream out =s.getOutputStream(); PrintWriter pw= new PrintWriter(out.true);
pw.println("<font size=7 color=green>注册成功</font>");
s.close(); ss.close(); System.out.println("hahahhaa"); }}
这是我想让java返回的内容
-------------------------------------------------------------

这是我电脑的IP.不管我怎么改jIP地址ava都不能返回数据.麻烦各位大神帮我解决下.或者是哪出的问题

貌似你的服务器配置的地方不对,你直接在浏览器上访问http://192.168.1.3:10009 如果浏览器报告说找不到网页 说明你服务器配置不对
温馨提示:答案为网友推荐,仅供参考
第1个回答  2014-08-23
把网卡停用了追问

麻烦帮个忙.谢谢了

第2个回答  2014-08-24



追问

我总共就这些分了.麻烦了

相似回答