how to change port 80 android

AndroidM picture AndroidM · May 28, 2013 · Viewed 10.8k times · Source

I made a webserver on my android device(using Nanohttpd). It's working fine over the port 8080 but I want to make it okay over the port 80,(I want to tape on my browser : http://192.168.x.x instead of http://192.168.x.x:8080/ ) but I'm not able to do it

This is how I call the method that creates the webserver:

httpServer = new NanoHTTPD(80,Environment.getExternalStorageDirectory());
  • Can someone tell me what service is running by default over the port 80 ?
  • How can i fix this problem ?

Answer

AndroidM picture AndroidM · May 29, 2013

I finally found a way to fix that, for those who have the same problem, here is the solution

  • I rooted the phone using UnlockRoot

  • then I installed Port redirector from the play store and I forwarded the traffic from port 80 to port 8080, and now my web server is available from the address: 192.168.x.x

Hope it will help :)