Telnet - Connection to host lost - on port 1099 in local machine

Sajeev picture Sajeev · May 30, 2016 · Viewed 9.6k times · Source

My jBoss server is running on the port 1099. While I am trying to telnet the port from the local machine, getting the "Connection to host lost" message. I was doing

telnet 192.168.200.150 1099

enter image description here

Its showing some other port as 8083. What this error message means?

Answer

user207421 picture user207421 · May 31, 2016

My jBoss server is running on the port 1099.

No. Your JBoss server is almost certainly running on port 80 or port 8080. Port 1099 is its port for its implementation of the RMI Registry, not its primary port.

While I am trying to telnet the port from the local machine

... which is an action that makes no sense whatsoever ...

getting the "Connection to host lost" message.

... which is because the server closed the connection, because it isn't designed to handle Telnet.

I was doing

telnet 192.168.200.150 1099

It's showing some other port as 8083.

It is apparently sending you an RMI stub for org.jnp.server.NamingServer, containing its IP address and port number, which is 8083.

What this error message means?

It isn't an error message. It is the result of successfully connecting to the IP:port you specified to the Telnet client. 'Connection to host lost' is an error message, and it means that the host closed the connection. As the host isn't a Telnet server, and you're using a Telnet client, it is difficult to see why you're surprised at this, or what you asking, or what you're asking about.