server-client chat using WiFi and java socket programming
I want to make a chat program us开发者_如何学Going 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.
精彩评论