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?