Networking Forums

Networking Forums > Computer Networking > Linux Networking > Is There A Command

Reply
Thread Tools Display Modes

Is There A Command

 
 
Dan
Guest
Posts: n/a

 
      04-21-2005, 07:22 AM

A 'netstat -t' will tell me the connection status of tcp sockets, but
is there a command that will tell me what sockets are listening?

I know that 'nmap localhost' will find out what sockets are listening
by trying all ports, but that's not quite the same.

Dan
 
Reply With Quote
 
 
 
 
Coenraad Loubser
Guest
Posts: n/a

 
      04-21-2005, 07:28 AM
Dan wrote:
> A 'netstat -t' will tell me the connection status of tcp sockets, but
> is there a command that will tell me what sockets are listening?
>
> I know that 'nmap localhost' will find out what sockets are listening
> by trying all ports, but that's not quite the same.
>
> Dan

nmap localhost
?
 
Reply With Quote
 
Davide Bianchi
Guest
Posts: n/a

 
      04-21-2005, 07:33 AM
On 2005-04-21, Dan <(E-Mail Removed)> wrote:
> A 'netstat -t' will tell me the connection status of tcp sockets, but
> is there a command that will tell me what sockets are listening?


netstat -l

man netstat for more info
Davide

--
The sun was shining on the sea, Shining with all his might:
He did his very best to make The billows smooth and bright --
And this was very odd, because it was The middle of the night.
-- Lewis Carroll, "Through the Looking Glass"
 
Reply With Quote
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      04-21-2005, 07:42 AM
Dan wrote:
> A 'netstat -t' will tell me the connection status of tcp sockets, but
> is there a command that will tell me what sockets are listening?
>
> I know that 'nmap localhost' will find out what sockets are listening
> by trying all ports, but that's not quite the same.


lsof -i

> Dan


Regards.

--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
 
Reply With Quote
 
Dan
Guest
Posts: n/a

 
      04-21-2005, 07:48 AM
On Thu, 21 Apr 2005 09:33:03 +0200, Davide Bianchi
<(E-Mail Removed)> wrote:

Thanks.

I had done 'man netstat', but there were too many options and I missed
that one.

Dan


>On 2005-04-21, Dan <(E-Mail Removed)> wrote:
>> A 'netstat -t' will tell me the connection status of tcp sockets, but
>> is there a command that will tell me what sockets are listening?

>
>netstat -l
>
>man netstat for more info
>Davide


 
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
SP3 Netsh command does not include wlan command. Stephen Liffen Wireless Networks 4 09-15-2008 02:42 PM
Need help in 'at' command R C V Linux Networking 6 04-03-2008 11:20 AM
Using Net Use command... Eric Windows Networking 8 04-17-2007 01:52 PM
dd-wrt ntp command skdjfa Wireless Internet 2 06-26-2006 04:24 PM
DNS and LS command TheBib Windows Networking 2 02-18-2006 03:50 PM



1 2 3 4 5 6 7 8 9 10 11