Hello,
I created a communication module Client / Server for the exchange of messages. The client uses the following method to connect to server:
Code:
InetAddress ad = InetAddress.getByName("localhost");
Socket server = new Socket(ad,80);
The local connection is successful, the problem occurs when I want to connect to a server installed on a remote machine that is with a friend. My server side program in not working. Therefore, what method should I use to log on his machine, which port should I use to have no problems with the firewall or antivirus? Thank you for your help.
Bookmarks