[ale] attached processes to port/ip
Lightner, Jeff
jlightner at water.com
Mon Jan 25 16:15:07 EST 2010
tcp:80 would only show what was on port tcp port 80 and wouldn't restrict to a certain IP address which is what I think the OP wanted.
If the OP wanted address AND port he could do lsof -i at ipaddress:port
e.g. lsof @192.168.1.1 would show all port 22 traffic (default ssh port) on IP 192.168.1.1.
Since he only asked about address he can omit the :port so it becomes "lsof -i 192.168.1.1".
-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Greg Freemyer
Sent: Monday, January 25, 2010 3:36 PM
To: Atlanta Linux Enthusiasts - Yes! We run Linux!
Subject: Re: [ale] attached processes to port/ip
# lsof -i tcp:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd2-pr 3949 root 4u IPv6 18675 0t0 TCP *:http (LISTEN)
httpd2-pr 3959 wwwrun 4u IPv6 18675 0t0 TCP *:http (LISTEN)
httpd2-pr 3960 wwwrun 4u IPv6 18675 0t0 TCP *:http (LISTEN)
httpd2-pr 3961 wwwrun 4u IPv6 18675 0t0 TCP *:http (LISTEN)
httpd2-pr 3962 wwwrun 4u IPv6 18675 0t0 TCP *:http (LISTEN)
httpd2-pr 3963 wwwrun 4u IPv6 18675 0t0 TCP *:http (LISTEN)
Is that what you wanted?
Greg
2010/1/25 Björn Gustafsson <bg-ale at bjorng.net>:
> # netstat -plan | grep -w <portnum>
>
> On Mon, Jan 25, 2010 at 3:13 PM, Atlanta Geek <atlantageek at gmail.com> wrote:
>> We are getting an bind error that says host address is already in use.
>> Is there a way to list processes attached to a paticular address but
>> on this server?
>
> --
> Björn Gustafsson
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
--
Greg Freemyer
Head of EDD Tape Extraction and Processing team
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
Preservation and Forensic processing of Exchange Repositories White Paper -
<http://www.norcrossgroup.com/forms/whitepapers/tng_whitepaper_fpe.html>
The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com
_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Proud partner. Susan G. Komen for the Cure.
Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------
More information about the Ale
mailing list