Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Commonly you have a web server running on your local development machine, and you want to connect to that site from your device. If the mobile device and the development machine are on the same network, this is straightforward. But this may be difficult in some cases, like on a restricted corporate network.

This is what I ran into at work.I have been trying to get my web application that runs on my my localhost to be accessible on my mobile device.

  • Desktop OS: Mac OS X 10.6.8
  • Desktop Chrome: Version 30.0.1599.69
  • Mobile OS: Android 4.3 (Nexus4)
  • Mobile Chrome: Version 30.0.1599.82

I found an article about chrome experimental features that was explaining you how to enable reverse port forwarding in chrome. I have been following the article until it said to tick the checkbox for "Enable reverse port forwarding" in "developer tools > settings > experiments". I found the tick list but could not find that option. Does anyone know how I can enable this reverse port forwarding?

share|improve this question
    
When you say "localhost", do you mean the device's localhost (itself) or do you just mean you're running a webserver on your desktop? Or am I missing something? –  dotVezz Oct 9 '13 at 16:36
    
In this case I mean localhost on the desktop. –  Timo Oct 9 '13 at 16:42
    
Are you unable to configure the server software and any applicable firewalls? If configured properly, you should be able to view the page without anything special, assuming the phone and desktop are on the same LAN. If there's some special reason you ned reverse port forwarding, it would probably help to give added details about your special case. –  dotVezz Oct 9 '13 at 16:56
    
Read the question again and noticed something I missed before: You kinda already answered my question (Sorry!). Just to confirm: Is this a case where (like in the article you linked) you're on a restricted network that makes the normal method impractical? –  dotVezz Oct 9 '13 at 17:04
1  
I'm looking at my Chrome (Arch Linux) and it doesn't have "Enable reverse port forwarding". However, it does have "Enable port forwarding" in exactly the same position (between "toolbar customization" and "console as overlay"). Perhaps it got renamed? Did you see/try that option? –  dotVezz Oct 9 '13 at 17:10

1 Answer 1

up vote 1 down vote accepted

Seems that what I was looking for was right in front of me. The option "Reverse port forwarding" from the article was renamed to "port forwarding" .

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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