I can't seem to be able to access my php files in a browser from my external ip.

I have a Ubuntu Server VM set up on my Windows desktop. I also have a Windows laptop that I use (99% of the time, it's outside the network). I have OpenSSH on the server. The server has a bridged adapter setup (Promiscuous Mode: Deny). For ease, lets say the internal ip of the server is (listening on port 2222) and the exernal ip of my home network is

I set up port forwarding so that when I access, I forward to the interal ip of This allows me to SSH into the server VM from both inside and outside the network.

This is a test server for an app, so I need to make php calls to execute queries on databases (MySQL) and I'd like to be able to view the JSON results to make sure everything is working. On my desktop, I can access the php files in my browser by connecting to (internal ip). I cannot access the php files from my browser with my external ip address. I get the same results:

Desktop (internal):

  • (hopefully using port forwarding) gives me a ERR_CONNECTION_RESET error
  • (this is router stuff, I have an Asus running AsusWRT) Settings have been updated. Web page will now refresh. Changes have been made to the IP address or port number. You will now be disconnected from RT-N66U. To access the settings of RT-N66U, reconnect to the wireless network and use the updated IP address and port number.

Laptop (external):

  • (hopefully using port forwarding) gives me a ERR_CONNECTION_RESET error
  • (just connect me to something...) gives me a ERR_CONNECTION_TIMED_OUT error

I'd like to be able to use this test server from any browser, is there a way to do this?


It seems your configuration lacks a port 80 forwarding from your router to

  • Yahtzee. Is there a way to do this without using 2 different port forwards? I only ask because most routers have a limit (I'm not close to reaching mine, but I could see it happening when using VM servers). – Matt Sep 1 '15 at 23:03
  • You can use SSH as a proxy SOCKS, but it will only works for ssh authentified users (usable for you but not if you need to share a link to your script) – aklmie Sep 1 '15 at 23:08

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.