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

I have been searching for a solution to this problem also for a few days. These posts are the best post I have found to exactly describe the issue. The objective is too direct Grafana to port 80 so that Dataplicity will send grafana through its worm hole.

Using dataplicity wormhole, grafana and influxdb on R Pi 4 to log and display data using Python and Grafana app under R Pi OS.

One does everything needed according to documentation but not only does Grafana not work with Dataplicity Wormhole on Port 80 it does not even work at all into localhost locally.
A soltion woild be brilliant for Raspberry Pi (R Pi) data logging applications as one could send data to influxdb and then graph it with Grafana and view from anywhere using Dataplicity Wormhole.
Help Please.

has this been fixed? I have the SAME issues. changed the ports and followed all instructions. now connections to the gui are refused

I am getting the same issue like attached screenshot.

has this been fixed?

Regards,
Susanta