I made server using python on laptop. And I made client using Java on samelaptop. They were connected, and They were communicated. But when I made client using Java on another laptop, client didn't find server What is wrong?? and What could I do??
On the laptop running the server:
The client can access using localhost:<port>
or 0.0.0.0:<port>
Connecting from another laptop (same network):
You have to connect to: <pc-server-local-ip>:<port>
To get <pc-server-local-ip
, using the laptop running your server:
- Windows : type ipconfig
in console, value next to IPV4
- Linux / Mac : type ifconfig
in console, value next to inet
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.