I came across the answer at the link below when troubleshooting why my debian server has suddenly stopped making ports visible to other devices on my network and I can't figure out why.
I have the same netstat output and the answer says the ports should be bound to the network interface or the network ip address instead of the localhost. However, it doesn't actually say how to do this. Can someone please explain what to do here?
Edit: my netstat output is listed below. Essentially I was using this machine to run a bunch of services on my local network (xrdp, vsftpd, emby, plex, apache). It was all working until it was powered off for a couple months but now nothing can be accessed from other devices. A port scan only shows up port 22 being open and I can still ssh in from other devices. I'm pretty stumped as to what's happened as nothing to my knowledge changed.
steve@Server:/$ sudo netstat -tnlp Active Internet connections (only servers) 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 683/sshd: /usr/sbin tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 657/cupsd tcp 0 0 127.0.0.1:32600 0.0.0.0:* LISTEN 1170/Plex Tuner Ser tcp 0 0 127.0.0.1:35323 0.0.0.0:* LISTEN 1003/Plex Plug-in [ tcp 0 0 192.168.0.107:40605 0.0.0.0:* LISTEN 2638/rygel tcp 0 0 127.0.0.1:41505 0.0.0.0:* LISTEN 2122/Plex Plug-in [ tcp 0 0 192.168.0.107:48807 0.0.0.0:* LISTEN 2607/qbittorrent tcp 0 0 127.0.0.1:48807 0.0.0.0:* LISTEN 2607/qbittorrent tcp 0 0 127.0.0.1:38089 0.0.0.0:* LISTEN 1170/Plex Tuner Ser tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 747/mariadbd tcp 0 0 127.0.0.1:35661 0.0.0.0:* LISTEN 2638/rygel tcp 0 0 127.0.0.1:33583 0.0.0.0:* LISTEN 1170/Plex Tuner Ser tcp 0 0 127.0.0.1:32401 0.0.0.0:* LISTEN 844/Plex Media Serv tcp6 0 0 ::1:3350 :::* LISTEN 695/xrdp-sesman tcp6 0 0 :::22 :::* LISTEN 683/sshd: /usr/sbin tcp6 0 0 ::1:631 :::* LISTEN 657/cupsd tcp6 0 0 ::1:35033 :::* LISTEN 2638/rygel tcp6 0 0 :::3389 :::* LISTEN 764/xrdp tcp6 0 0 :::8096 :::* LISTEN 658/EmbyServer tcp6 0 0 fe80::3edd:d094:c:48807 :::* LISTEN 2607/qbittorrent tcp6 0 0 ::1:48807 :::* LISTEN 2607/qbittorrent tcp6 0 0 :::5900 :::* LISTEN 2636/gnome-remote-d tcp6 0 0 :::36559 :::* LISTEN 2791/apache2 tcp6 0 0 :::32400 :::* LISTEN 844/Plex Media Serv tcp6 0 0 :::80 :::* LISTEN 812/apache2 tcp6 0 0 fe80::3edd:d094:c:41877 :::* LISTEN 2638/rygel tcp6 0 0 :::21 :::* LISTEN 679/vsftpd