Java Sockets time-out over the Internet

后端 未结 4 1667
逝去的感伤
逝去的感伤 2020-12-17 02:40

I created a small chat program, that works flawlessly when client & server are run on the same computer (and probably network, too). However, as soon as I try to connec

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-17 03:19

    First, test to see if it really works on a LAN; it sounds like you're just assuming it does.

    If it works on your local network, perhaps it's failing because the server lacks a public IP, and is running behind a NAT'ing router.

提交回复
热议问题