Thanks, but that did not allow me to connect.
I am able to ping this box from my desktop, but telnet to the listener port from any
other box shows "port 8888: connection failed." The listener, of course, now shows the behavoir I was hoping to avoid, only listening on the loopback:
netstat -an | grep 8888 # listener port
tcp 0 0
127.0.0.1:8888 0.0.0.0:* LISTEN
I was hoping that getting the NIC's routable IP in the listener would work, but it doesn't. I've done that both with hard coding the IP in a
String, and the InetAddress.getLocalHost() call.
tcp 0 0
10.n.n.n:8888 0.0.0.0:* LISTEN
I am starting to wonder if Oracle's toy example web server (straight from the Javadoc pages with "null" passed to HttpServer.setExecutor(null) works for ANYBODY connecting from another host, or whether this is some weird iptables issue that is site specific.
Unless somebody can point out an error that I'm making, I will have to try this code on another network and see if this still happens.