My development machine runs Ubuntu (14.04) and I'd like to test my webapplications which are developed in a Vagrant box with my phone. This is how I made this possible:
- Install Privoxy (sudo apt-get update && sudo apt-get install privoxy)
- Check your local ip-address
- Change the listen address in Privoxy's config file (/etc/privoxy/config) to your local ip-address (usually starts with 192.168.x or 10.0.x)
- Run Privoxy (sudo service privoxy start)
- Check if the proxy works, by setting your browser on your development machine to use Privoxy as it's proxy. And then go to http://p.p and it should show your Privoxy running
- On your phone (I'm using Android 4) make sure to use the same network as your development machine and setup the wifi to use your development machine as a proxy (long press on the wifi AP name to access the connection settings). Use the listen adddress you've supplied Privoxy with
- Pro-tip: Don't forget to let your firewall allow connections to your proxy for now!!
- Browse t