java.net.SocketException: select failed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at TankServer.start(TankServer.java:18)
at TankServer.main(TankServer.java:33)
java 18: s = ss.accept();
java 33: new TankServer().start();
端口用的是 "172.0.0.1", 8888
程序是没有问题的,估计是端口问题,求解决方法!!!!
谢谢啦
------解决方案--------------------
你可能麻烦大了,估计你把协议栈给弄坏了,乱玩QQ医生、ARP防火墙、VPN翻墙 之类的东西吧。
参见这里:
http://blog.sina.com.cn/s/blog_5e2d8c740100t3x1.html
和这里:
http://selbat.blog.163.com/blog/static/174024707201132211218969/