Socket connection Private Network
Hello!
I have a problem with Socket - ServerSocket connection.
When using Socket - ServerSocket connection within same network program works perfectly, however problems start when I want to connect to ServerSocket located in private address space from the Internet.
I have redirected a port which the ServerSocket is listening on to the machine which has ServerSocket running. I have disabled firewall software etc.
The funny thing is when I check if the port is open using Shields UP scanning page (http://www.grc.com/x/ne.dll?rh1dkyd2) ServerSocket establishes connection with scanner.
Second test I did was to use telnet to connect to ServerSocket.
When connecting inside private address space there was no problem, as expected, however when connecting from Internet I could not establish connection.
So 2 tests and different results, I have no idea what to do next.
My guess the problem lies on Socket part of connection, but thats all, I have run out of ideas how to solve the problem.
I would be really greatfull for any input on this matter.
port is set to 51982 and redirected on router to machine with ServerSocket.
Ah the error I recieve when connecting using socket from Internet is:
Connection reset by peer
Server side of program:
...........
ss = new ServerSocket(port);
cs = ss.accept();
............
Client side of program:
.............
cs = new Socket(address,port);
out = new ObjectOutputStream(cs.getOutputStream());
............

