Re: How to tell if a given TCP/IP port is open or closed?

From: Karl Levinson [x y] mvp (levinson_k_at_despammed.com)
Date: 08/22/03


Date: Fri, 22 Aug 2003 14:08:48 -0400


... although note that you'll also see ports that are not listening on your
computer, like your IE browser going out the internet... also, you won't see
ports that are let through on your firewall, which may not be listening on
your computer right now, but might be used later by a worm or trojan. For
example, TCP 25 or 6667 probably isn't open per Netstat, but could still be
a hole that a worm could use to email worms or your passwords out to others,
or remotely control your computer using IRC.

http://securityadmin.info/faq.htm#closeports

The answer sort of depends on what you mean by open. Open port can mean a
service is listening, or it can mean that no service is listening but you
have no firewall or your firewall is not blocking future use of that port.

"Vanguard" <rztqf6v02-NIX@sneakemail-NIX.com> wrote in message
news:OXtQ47MaDHA.2588@TK2MSFTNGP09.phx.gbl...
> "Robert" <nospam@nospam.com> wrote in message
> news:egiH1zMaDHA.3444@tk2msftngp13.phx.gbl
> > How can I determine whether any given port is open or closed?
> >
> > Many thanks, Robert
>
> netstat -a [-n]
>
> Use the -n switch if you want to see all ports as numbers instead of
> friendly/common names, like pop3 and microsoft-ds.
>
>
> --
> ____________________________________________________________
> ** Share with others. Post replies in the newsgroup.
> ** If present, remove all "-nix" from my email address.
> ____________________________________________________________
>
>
>



Relevant Pages

  • Re: IT Survival on Linux.
    ... > connections instead of those you approve. ... > box doesn't need to run any services, and thus have no open listening ... > ports anyway. ... Anyway I don't think a firewall can hurt, its kind of the same thing that ...
    (alt.os.linux)
  • Re: got the Slammer worm - why now?
    ... > I'm on dialup and use the XP firewall and Sygate firewall ... Last year when the Slammer worm ... Might be a new "strain" that can change ports. ... I'd recommend stronger antivirus. ...
    (comp.security.firewalls)
  • RE: Can you get Sasser if you have a firewall?
    ... >open port", so that even if you have a firewall, you can still get the ... If the "Worm" was altered to use a different port other than the well document ports that it uses than you ... UDP connections are allowed in and this does mitigate the worm's affects on that system. ...
    (microsoft.public.security.virus)
  • Re: Closing Ports
    ... you can physically open and close ports but it's ... the work - and I highly recommend a hardware firewall over ...
    (microsoft.public.security)
  • RE: who closed my networking ports?
    ... I can't work out why other ports are closed when on ... If you haven't got any network services ... daemon/service listening for incoming traffic. ... A "firewall" is needed if you want to filter access to ...
    (Debian-User)