I have a weird problem, to be specific it’s about Jboss’s JNDI and on linux.
If I’m on the server via ssh (Putty) and run the following:
telnet localhost 1099
It tells me connection refused, but… If I run:
telnet x 1099
where x is the ip address of the server, it connects, all this on the actual server.
How can this be? shouldn’t work via localhost? I also tried 127.0.0.1 with no luck.
It sounds like the program is binding to a specific IP address or network interface. Run
netstat -tnlp | grep :1099and you will probably see that it is listening on a non-loopback interface.If you can instruct the application to listen on
0.0.0.0(the IPv4 wildcard address) then it will be accessible from any network interface on the machine.