How to change default webserver port 8080 to other

Hello:

We have two raspberries using the same router, we can access the maps with IP:8080 but it will of course shows only one of the pi’s. How can I change in one of them the dump1090 web server default port to for example 9090, so I can access both of them. We are testing antennas and want to compare coverage.

Any suggestion will be helpful

Thanks

Alex

Open the file /etc/init.d/fadump1090.sh using sudo in your favorite text editor.
Look for the line starting “PROG_ARGS=”…
Add --net-http-port 9090 to the line.
Restart fadump1090 using the command sudo /etc/init.d/fadump1090.sh restart.

You don’t make it clear as to where you are trying to access the two different pi’s. If the pi’s and the browser are on the same subnet then you should not have to change the port number at all.

Pi#1 at
xxx.xxx.xxx.001:8080
and
Pi#2 at
xxx.xxx.xxx.002:8080

are unique addresses.

If you are outside the subnet with your browser (e.g. over the internet), most routers allow for port forwarding like this:

YYY.YYY.YYY.YYY:8080 > xxx.xxx.xxx.001:8080
YYY.YYY.YYY.YYY:8081 > xxx.xxx.xxx.002:8080

Where YYY.YYY.YYY.YYY represents your internet IP address