Java - Connecting a client to a server without the localhost

前端 未结 2 941
不思量自难忘°
不思量自难忘° 2021-01-27 08:20

Hello world, I made an instant messenger with the server and the client that runs on a localhost, but I want to put the client on another computer but it cannot connect to the s

相关标签:
2条回答
  • 2021-01-27 08:57

    Use

    ipconfig
    

    command on Windows (in command-line) to get your IP address.

    0 讨论(0)
  • 2021-01-27 09:18

    Get the Ip Address of the server machine, and replace the "localhost" in the client code with the Server IP.

    0 讨论(0)
提交回复
热议问题