Saturday, September 3, 2022

[SOLVED] ubuntu can't listen 0.0.0.0

Issue

I'm trying to run program in my IP address in port:1433 that to run from web but only program running in my IP. when I use $netstat -na | grep LISTEN command return this:

tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:1433            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:7071            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:10050           0.0.0.0:*               LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN     
tcp6       0      0 127.0.0.1:6942          :::*                    LISTEN     
tcp6       0      0 :::10050                :::*                    LISTEN     
tcp6       0      0 :::3306                 :::*                    LISTEN     
tcp6       0      0 127.0.0.1:63342         :::*                    LISTEN     
tcp6       0      0 127.0.0.1:9614          :::*                    LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN     

Solution

0.0.0.0 mean the system is listening on all IP addresses on the system -- it's a shortcut so netstat doesn't need to list out, for example, the five IP's you've got configured on a box. If you bind a service to a specific IP, it'll show up specifically (including stuff bound to localhost, where you see 127.0.0.1).



Answered By - LisaJ
Answer Checked By - Willingham (WPSolving Volunteer)