Networking Forums

Networking Forums > Computer Networking > Linux Networking > listening to a specific port in real-time

Reply
Thread Tools Display Modes

listening to a specific port in real-time

 
 
schoi21c@gmail.com
Guest
Posts: n/a

 
      04-18-2007, 12:59 AM
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

 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      04-18-2007, 05:59 AM
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
 
schoi21c@gmail.com
Guest
Posts: n/a

 
      04-18-2007, 06:38 PM
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
 
Tim S
Guest
Posts: n/a

 
      04-18-2007, 07:29 PM
(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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Port Not Listening Thomas R Grassi Jr Windows Networking 4 12-13-2008 09:17 AM
Socket connection to port fails despite port open / listening ! Jack Linux Networking 2 12-19-2007 03:46 PM
real time port communication? bukovinsky@volja.net Linux Networking 2 08-03-2006 03:09 AM
1 port, listening and connecting, how to Marcia Hon Linux Networking 1 02-10-2004 08:55 AM
How do you ping a server to find out if it is listening on a specific port Matt Windows Networking 1 12-01-2003 06:02 PM



1 2 3 4 5 6 7 8 9 10 11