简体   繁体   中英

server-client chat using WiFi and java socket programming

I want to make a chat program using WiFi connection between 2 computers (ad-hoc). I'm familiar with socket programming in java, but I can't implement this in 2 computers. Could you help me to add WiFi network to my program?

Each computer on your WiFi network will have an IP address. Using one computer as the host, you create your ServerSocket. Your other computer will be the client, and can connect to the IP address of your host.

You then have your client/server over Wifi (and any other network for that matter) ready to go.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM