Router: IP: 192.168.1.1
Host OS: Windows 7(64 bit) – IP: 192.168.1.2
Guest OS(VMware): Ubuntu 12.04 LTS(64 bit) – IP: 192.168.1.10
Guest OS has a NAT and a bridged connection via VMWare.
I’m running a basic Node.js server/website listening on port 8000.
Port forwarded Router with internal/external port: 8000
I can access my website on LAN(via Windows OS) but not from the any computer outside it or via the internet.
Tried:
(1) Disabling Ubuntu firewall “ufw”.
(2) Windows 7 firewall disabled.
(3) Problem persists even for apache2 or any other server.
Result: No change
Also external port scans(nmap on external IP) show my port 8000 to be “filtered” rather than open.
Also running the same Node.js server on port 8000 in Win 7 works fine. Port 8000 is “open”.
I have tried a “lot” of online solutions for several days but no progress.
Any solutions/ideas please?
Problem solved.
I switched over to “Oracle’s VirtualBox” and it works flawlessly.
It’s possible to employ a virtual server either by –
(1) NAT connection with port forwarding.
(2) NAT and a bridged connection.
I used option 2 and used a static IP(192.168.1.10) for the bridged connection. The NAT connection defaults to 192.168.1.2 by DHCP.
Router port forwards as, incoming port: 8000, outgoing port: 8000 and outgoing IP: 192.168.1.10
For a clear and concise tutorial, here’s a good link -> http://www.howtogeek.com/122641/how-to-forward-ports-to-a-virtual-machine-and-use-it-as-a-server/
It’s possible on “VMWare” too, but it’s much simpler on “VirtualBox”, in my opinion.
Check more discussion of this question.