2

I'm running ubuntu inside a virtual machine with VMWare. I'd like to connect to port 8080 from outside the VM. I can't copy and paste text from the VM so you'll have to trust me on this:

The VM's IP address is 192.168.127.129

From the VM:

'nmap localhost' shows ports 22, 80, 1521, and 8080 open. 'nmap 192.168.127.129' only shows ports 22, 80, and 1521 open.

Am I missing something obvious here?

2
  • 1
    what service is listening on 8080? Are you sure that service is not configured to only listen to the local host address?
    – Zoredache
    Jan 29, 2010 at 22:36
  • You should clarify what VMware product are you using, and what sort of virtual network port are you connected to (private, NAT or bridged). You will only be able to connect from an external source to the VM with Bridged networking.
    – Helvick
    Jan 30, 2010 at 9:14

2 Answers 2

2

localhost is an internal interface with IP address 127.0.0.1.

192.168.127.129 belongs to your external interface (which in this case happens to be a virtual network interface as opposed to a physical one). localhost and 192.168.127.129 are two different interfaces and so you will get different results, depending on how your network services are configured.

Whatever service you have running on port 8080 only listens on the loopback interface and is not available to the rest of the world, only TCP/IP clients connecting from localhost.

2

What service is listening on port 8080? You'll probably have to look at the service's configuration, many services only listen on 127.0.0.1 by default for security reasons.

1
  • The service is tomcat. Ok, I'll check out its configuration tomorrow.
    – user33287
    Jan 31, 2010 at 12:56

You must log in to answer this question.