1

the port 7778 is in listen,

netstat -tulpn
tcp        0      0 127.0.0.1:7778   0.0.0.0:*        LISTEN      22776/java

but I can't telnet that port from remote machine while I can telnet other port by using this command

telnet 192.168.1.100 port_number
user68186
  • 37,795
Nadya Nux
  • 151

2 Answers2

2

The address 127.0.0.1 is the loopback address.

As you have the 127.0.0.1:7788 in the "Local Address" of netstat output, this means that the connection is only listening for connections originating from this computer only on the loopback interface. No other computers on the network can reach your loopback address directly hence the telnet is failing from other computers.

heemayl
  • 94,145
  • yes I can only telnet that port from localhost but i can't telnet it from remote host, so howto change it? i mean to use the address it instead of localhost and make it accessible by other machines? – Nadya Nux Apr 14 '15 at 13:35
2

java is listening in 127.0.0.1, that is localhost.

You can't connect from outside, unless you do some kind of forwarding, using ssh for instance.

Edit:

from external hosts,

if unix/linux

ssh -L 1234:127.0.0.1:7778 runtime
  • then from that external host, telnet 127.0.0.1 1234 (ssh will forward you)

if windows, use putty or bitwise to forward local port 1234 to 7778 on host holding runtime.

Archemar
  • 682