Changing the default port 3000 to port 80

Hi everyone,
I would like to change the grafana port from 3000 to 80 to be able to visualize it remotely using dataplicity.
I have changed the grafana.ini as follows : [server]
http_port=80``
Then I restarted the server using sudo service grafana-server restart
There was no change.
I then tried to redirect the port 80 to the grafana port as described here. Nothing changed and port 80 cannot still be accessed.

What could be the problem? Grafana is running from a raspberry pi

Hi everyone,
I would like to change the grafana port from 3000 to 80 to be able to
visualize it remotely using dataplicity. I have changed the grafana.ini
as follows : [server]
http_port=80``

Did you do “sudo setcap ‘cap_net_bind_service=+ep’ /usr/sbin/grafana-server”
as documented on the page you quote below?

Then I restarted the server using sudo service grafana-server restart
There was no change.

What does “netstat -lptn” tell you? Is anything listening on port 80?

I then tried to redirect the port 80 to the grafana port as described
here. Nothing changed and port 80 cannot still be accessed.

What does the output of “sudo iptables -t nat -L PREROUTING -nvx” show?

What could be the problem? Grafana is running from a raspberry pi

Where are you trying to access the Pi from? Another machine on your own local
network, or somewhere on the other side of at least one router?

Antony.

I copied exactly what is on the page into the terminal.
The results of the netstat -lptn returned the following
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:8088 0.0.0.0:* LISTEN -
tcp6 0 0 :::8086 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 :::3000 :::* LISTEN

The following shows the results of sudo iptables -t nat -L PREROUTING -nvx

   Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts      bytes target     prot opt in     out     source               destination         
   0        0 REDIRECT   tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80 redir ports 3000

Lastly I am trying to access the pi from another macine on my own local network. However, if port 80 is activated, then I will not worry about what network I use.

What could be the problem?

hi waswa1, did you managed to resolved this issue? I have encountered the same issues and would like to know your solutions. thanks