I'm using serversockets for the server and sockets for the client and I'm trying to connect to the server using hamachi. I'm using the right IP, but it won't let me connect and I'm getting a timeout exception.
Here's my code:
ServerSocket serverSocket = new ServerSocket(port, 4, null);
Socket clientSocket = new Socket(serverIP, port);