i want to get access to my server from network.

netstat -an | grep LISTEN
tcp        0      0  *               LISTEN     
tcp        0      0 *               LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN     
tcp6       0      0 :::443                  :::*                    LISTEN     
tcp6       0      0 :::3306                 :::*                    LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN   

how do i change/add/replace this to:

tcp        ?      ? my_ip:80                ??????                  LISTEN 

and what are the numbers i tagged with "?" for?


Ports are opened by processes, so your service needs to be configured to open the port in question on the interface/protocol required. In your case, you want to change the interface to or your LAN IP, and the protocol to TCP4.

you will have to do this in your webservers config file. without knowing your exact HTTP server, we can't tell more, but most linux servers allow you to specify what Interface to bind to, and sometimes what TCP/IP version to use. either way, if you bind to an interface by IPv4 address, that usually creates an TCP4 listener.

  • i really don't understand why,without changing anything, but know it works. Feb 10 '15 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.