Is it possible to run a socket server and socket client on the same machine?

后端 未结 4 958
迷失自我
迷失自我 2020-12-05 07:41

In java it is possible to create a socket server and a socket client, is it possible to have an instance of the socket server running and a socket/server client that is rece

4条回答
  •  一整个雨季
    2020-12-05 08:27

    Yes, you can run a client and server on the same machine. I do it all the time for development. If you are having troubles though, some routers have problems forwarding packets back to themselves. Try using localhost instead of your external IP for development.

提交回复
热议问题