You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mac Serve <ma...@ns.sympatico.ca> on 2003/07/09 06:53:11 UTC
[users@httpd] port
Is there a unix command that tells you what ports are being used by
what?
Mike
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] port
Posted by Aaron Morris <aa...@mindspring.com>.
Mac Serve wrote:
> Is there a unix command that tells you what ports are being used by what?
In WinXP (I know it's not unix ;-) ): -o flag in netstat
Linux (and perhaps the BSDs): -p flag in netstat
You will have to check the docs on you particular Unix. I do not think
there is an option in the AIX version of netstat. Your best bet on any
Unix is to use lsof as previously mentioned.
--
Aaron W Morris <aa...@mindspring.com> (decep)
PGP Key ID: 259978D1
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] port
Posted by Joseph A Nagy Jr <jo...@charter.net>.
On Tuesday 08 July 2003 23:53, Mac Serve wrote in an attempt to be witty
and informative:
> Is there a unix command that tells you what ports are being used by
> what?
<snip>
Try 'netstat -tunap | grep <port number here>', replacing <port number
here> with the port you want to look for. It might be possible to use a
wild card. Be sure you are root though to use this as it won't return
the port numbers that non-user-owned processes are using. I myself
found this out off the NLUG[0] Newbies mailing list.
[0]: http://ww.nlug.org
--
Wielder of the mighty +1 LARTsaber of Unsubscribe Instructions At End of
Message, the +3 Clue-by-Four of No Attachments to a Mailing List, and
the -4 Shield of No Spell Checker
http://joseph-a-nagy-jr.homelinux.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] port
Posted by Jimmy McDonald <io...@bsdshell.dyndns.org>.
lsof -i is pretty good if its installed
On Wed, 9 Jul 2003, Robert Andersson wrote:
> Mac Serve
> > Is there a unix command that tells you what ports are being used by
> > what?
>
> netstat would probably do.
>
> If you're on your Mac, here's a link:
> http://www.osxfaq.com/man/1/netstat.ws
>
> Regards,
> Robert Andersson
>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] port
Posted by Robert Andersson <ro...@profundis.nu>.
Mac Serve
> Is there a unix command that tells you what ports are being used by
> what?
netstat would probably do.
If you're on your Mac, here's a link:
http://www.osxfaq.com/man/1/netstat.ws
Regards,
Robert Andersson
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org