I wrote a Simple Java Server-Client program. It works all fine when I use "localhost" as address in the Socket's constructor, but it fails when I specify my actual IP. Thus I think the problem is not in the Java-code.
I've forwarded the Ports on my Router (a Speedport w921v from the German provider Telekom). On Windows 7 I've turned down every Firewall. I tried as well on Ubuntu 14. I use really the correct ip and not a local ip like 127. or 192.. When typing sudo netstat -tulpe
I find this record which might belong to my program
tcp 0 0 *:10300 *:* LISTEN
10300 was the port I gave the Server with server = new ServerSocket(10300);
When I try to communicate with the port via telnet xx.xxx.xx.xxx 10300
I can't get no response but if I type telnet localhost
10300 I will get an answer.
I have really no clue why this problem occurs.
Sorry for the bad English ;)