Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

listening to a specific port in real-time

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2007, 01:59 AM
Default listening to a specific port in real-time



Hi,

I need to find a way to listen to a port in real-time on linux. Is
there such a way/tool to do this?


Thanks,
-Seung



schoi21c@gmail.com
Reply With Quote
  #2  
Old 04-18-2007, 06:59 AM
Bill Marcum
Guest
 
Posts: n/a
Default Re: listening to a specific port in real-time

On 17 Apr 2007 17:59:12 -0700, (E-Mail Removed)
<(E-Mail Removed)> wrote:
>
>
> Hi,
>
> I need to find a way to listen to a port in real-time on linux. Is
> there such a way/tool to do this?
>

nc -l -p port


--
Be security conscious -- National defense is at stake.
Reply With Quote
  #3  
Old 04-18-2007, 07:38 PM
schoi21c@gmail.com
Guest
 
Posts: n/a
Default Re: listening to a specific port in real-time

That command fails when I try it with port #22, i.e. ssh port with
bind, since sshd is already bound to that port. Is there a way to get
around this problem? Does 'nc' only work with unbound port?


Thanks,
-Seung




On Apr 17, 10:59 pm, Bill Marcum <marcumb...@bellsouth.net> wrote:
> On 17 Apr 2007 17:59:12 -0700, schoi...@gmail.com <schoi...@gmail.com> wrote:
>
> > Hi,

>
> > I need to find a way to listen to a port in real-time on linux. Is
> > there such a way/tool to do this?

>
> nc -l -p port
>
> --
> Be security conscious -- National defense is at stake.





Reply With Quote
  #4  
Old 04-18-2007, 08:29 PM
Tim S
Guest
 
Posts: n/a
Default Re: listening to a specific port in real-time

(E-Mail Removed) wrote:

> That command fails when I try it with port #22, i.e. ssh port with
> bind, since sshd is already bound to that port. Is there a way to get
> around this problem? Does 'nc' only work with unbound port?
>
>


Oh - I presume you want to snoop packets then?

In which case, use tcpdump or etherreal.

eg:

tcpdump -v -s65535 -X -i eth0 port 22

"man tcpdump" displays the full potential, which is vast.

Cheers

Tim
Reply With Quote
Reply

Tags
listening, port, realtime, specific

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.