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

From the VM:

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

Am I missing something obvious here?

  • 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 '10 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 '10 at 9:14

localhost is an internal interface with IP address belongs to your external interface (which in this case happens to be a virtual network interface as opposed to a physical one). localhost and 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.


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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy