-1

Question:

When I start a webserver on my machine (on port 80), and then try to access it via my public IP, I get HTTP error 504 (Gateway Timeout).

Why ?

This only happens when I am connected to the internet via Android.
When I connect via normal ADSL, everything works fine.

Is there any way to enable this ?
If Android was a router, I'd say I need to port-forward.
But it's strange I get HTTP 504 then.

Anybody knows ?

Quandary
  • 974
  • 4
  • 18
  • 34

2 Answers2

0

http://www.codeproject.com/KB/android/UsbPortForwarding.aspx

The Android architecture does not allow to start communication from the Android to the host through the USB cable.The opposite is possible, using the Google "Android Debug Bridge" (ADB in short).

http://sigitp.wordpress.com/2011/05/12/tunneling-and-port-forwarding-in-android/

Quandary
  • 974
  • 4
  • 18
  • 34
0

You're exactly right. If it was a router, you'd need to do port forwarding. Unfortunately, the routing is done on a machine you have no access to, maintained by the provider. So there's no way you can arrange to have port 80 forwarded. Likely they couldn't do that anyway because that port seems to be used for some other purpose -- whatever is issuing the 504 error.

Your only solution would be to use a VPN.

David Schwartz
  • 31,215
  • 2
  • 53
  • 82