0
I tried to make a chat program with java. i succeed when i use the ip of 127.0.0.1 to connect.
Socket socket = new Socket("127.0.0.1",5005);
it all worked great on my computer and the program even worked when i try to connect between my comupter and my leptop which uses the same router. (i did it by using the local ip.)
Then i wanted to connect computers which uses other routers by using the external ip. so i read on web and i understand that i need to forwad my port through my router.
i have a Siemens ADSL Sl2-141 router.
i forwad the port 5005, and my chat program still doesn't work. i get Connection Refused error over and over.
did i missed somthing?
double check Internal Host IP-address. Did you try both your laptop and your desktop computer as target?. Do you use any further (software)-Firewalls? – yankee – 2013-02-11T17:03:36.857
NOTE: Although this question has been migrated I don't think it is clear if this is a network configuration issue or a code issue (listener/connection going through correct IP addresses). Until we get more information it may be a case of hasty moderation. – Grambot – 2013-02-11T19:22:08.403