问答详情
源自:3-3 编程实现基于 TCP 的 Socke t通信之客户端

端口号出现问题,报错

java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:128) at Server.main(Server.java:22)

提问者:盛夏____ 2016-10-29 23:40

个回答

  • 盛夏____
    2016-10-30 22:39:14

    该怎么解决啊?

  • 夜空中最亮de星
    2016-10-30 12:43:34

    端口已经在用了,tomcat启动了两次??