Search code examples
phpserveriptablesportforwarding

How to setup my localhost server so that I don't have to enter the port number to surf the site?


I started a server inside my PC and when I want to visit localhost with a browser I have to write localhost:8080 When I am trying to enter in the site with another PC or Phone through WIFI I have to write something like: 192.168.0.123:8080 My question is, is there any way I can enter inside the site I am hosting inside my PC without writing the port, like: 192.168.0.123 (N.B. : I just want to use this inside my wifi network. Going public is not my target)


Solution

  • With http, unless the port is 80, you have to specify it.

    So you'll have to configure your server to use port 80 instead of 8080.