-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Mahmood, On 6/21/16 2:45 PM, Mahmood N wrote: >> tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 28122/xinetd Shows the >> port, 5666, the PID, 28122, and the program name, xinetd > So, you still don't know what is the IP address (network > interface)? I mean eth0, eth1 and ... > > Mine is different! > > root@cluster:~# netstat -pat | grep httpd tcp 0 0 > *:ulistproc *:* LISTEN 3940/httpd tcp > 0 0 *:https *:* LISTEN > 3940/httpd It helps if you don't grep-out the header line that tells you what the fields mean: $ sudo netstat -pat | grep '\(^Proto\|httpd\)' Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:http *:* LISTEN 1362/httpd tcp 0 0 *:81 *:* LISTEN 1362/httpd tcp 0 0 *:https *:* LISTEN 1362/httpd The fourth column tells you the local address, and the "*" means "all interfaces". If you use the "-n" switch, you'll get: tcp 0 0 :::80 :::* LISTEN 1362/httpd tcp 0 0 :::81 :::* LISTEN 1362/httpd tcp 0 0 :::443 :::* LISTEN 1362/httpd So you can see the IP address is "::" (IPv6 "unspecified address") which means the same thing. >> The only directive that causes Apache to listen on a network >> interface is "Listen". > > As I said, that section is commented. So, there should be a default > ethX and port. The default interface is always "all interfaces". IF you want to listen on a specific interface, then do: Listen 172.20.54.10:80 https://httpd.apache.org/docs/current/mod/mpm_common.html#listen - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJXaY5AAAoJEBzwKT+lPKRY3Z8QAJrvzXMBShddQxhIGcfRoWf0 kRHTCT1MF8tDK8xClJQzq/gDXO2Zcvdc6HGWU5Kdx+3si0RLlHi9bOpZL/jzJBuu Bu3QtveAfEeoh+BIZuIrgLK5QLVRkE+jZGXK82xeDdFQSHAMVz078JysDJha1rCK AnPf28NMJ4SJaKv1j1ai/8rzFNYO5/uYWQdfcl1job07Je0msdbcfPAw+aG4FV+z Y1XFzhhFn0nAXZvLSMB+IQYiQHpsE7Mre7LKXlkpi/M4930pBauWjaFiPULgVTHu dqJxLyTUsw3eCZ+56dcWz2bqh6sOUrk16rUezG0WCZW3piOgS98AG29s7aBuzm2X n1FAteifWHaHULw28neX49cfpqQlYOvt97nFUaBqH1wcVpIprXA3sldzwe7BYz6S SpyeRziG7slQD5y68t+Zo2/spJbu/jnIptywGAJyinvhcq/RvsuXo0vHHPwPzIAW E65qqHNN1BFinlkRQWN1SbJ14xQO/EziPa/RN9qmlhz8tMweSQrpb2iHG/tIij2R 1V6umfjGYZQth5POcI8QaCnx+yMMP1gCh4HXp2wxVUDLgw1GN40PSqPGdezjaWfr Zj3jif53qvN1Qj57SEETWF3x1Qfff68Un1GM+t8nsEicfnhBcUYePmN+DCHxCNsh 5LixcYjFtA3KfmimkJi7 =N1l5 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx