7

OpenJDK 7 AsynchronousServerSocketChannel only accepts localhost if bound to localhost/127.0.0.1 not external

view full story
linux-howto

http://stackoverflow.com – > java -version java version "1.7.0_09" OpenJDK Runtime Environment (IcedTea7 2.3.3) (suse-3.16.1-x86_64) OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode) On openSUSE 12.2 (x86_64) and AppArmor is not running, and the firewall is disabled. If server using AsynchronousServerSocketChannel is listening for connections and I specify localhost or 127.0.0.1, then it only accepts connections from the localhost and if I try to connect from another machine it rejects it. WTF?! If I instead put in the Java server its actual machine's hostname or IP address, rather than localhost or 127.0.0.1, (HowTos)