I have a basic Java Client Server TCP Programm which is able to connect over LAN and also when i use my public ip with port forwarding.
What bothers me, is that it does not work when i try to use the same programm inside of a hamachi VPN network. I want to get it to work there as well, as many people try to avoid port forwarding but use hamachi as it seems easier for them.
Server Code ss = new ServerSocket(4444); Client c = ss.accept();
Client Code Socket client = new Socket(, 4444); printWriter = new PrintWriter( new OutputStreamWriter( client.getOutputStream()));
I googled and could not find any information about this problem, as usual people ask how to avoid port forwarding and are told to use hamachi for example or learn how to forward their ports.
Thanks in advance!
The error was another part of the program did close some of the streams and as in java closing one encapsulated stream closes everything beneath it.