Jump to content

Can I change the ports on this? Ubuntu

T0MMEN

sudo netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:4711          0.0.0.0:*               LISTEN      1112/pihole-FTL     
tcp        0      0 127.0.0.1:43467         0.0.0.0:*               LISTEN      5319/containerd     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      19951/lighttpd      
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      1112/pihole-FTL     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      750/cupsd           
tcp6       0      0 ::1:4711                :::*                    LISTEN      1112/pihole-FTL     
tcp6       0      0 :::80                   :::*                    LISTEN      19951/lighttpd      
tcp6       0      0 :::53                   :::*                    LISTEN      1112/pihole-FTL     
tcp6       0      0 ::1:631                 :::*                    LISTEN      750/cupsd


I want to set up a steam cache server, but i have to use port 80. Lighttpd is using that port. What is it? how can i change/kill it ?

i9-9900k 5.0ghz, 16gb Corsair 3600mhz, Asrock phantom itx z390 Mobo, RTX 3060ti, 1TB+1TB Western digital NVME, InWin A1, Noctua NH-U12S

 

Link to comment
Share on other sites

Link to post
Share on other sites

It's a webserver (lightweight http daemon), which is why it is using port 80 (HTTP).

 

If you aren't using it, you can certainly stop and disable it (systemctl stop lighttpd, systemctl disable lighttpd).

 

Before you do that, open a browser and go to http://localhost, that should maybe give you a hint why a webserver is running.

 

~edit: I see you are running pihole, so that is most likely its web interface.

 

https://jdsworld.com/tech-support/pi-hole-dns-change-default-web-port/

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

You would need to change the lighttpd port in its settings. keep in mind that would change the port of the pihole web portal.

You can change it by changing server.port in /etc/lighttpd/lighttpd.conf

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×