How to close open ports

  • Thread starter Thread starter Enrique
  • Start date Start date
E

Enrique

I have a couple of computers (Windows XP SP1) that have port 5000 open. How
can I determine what is requesting it to be open and more importantly, how
to close the port?

Thanks in advance,
Enrique
 
Zone Alarm firewall will do both.

HTH-Larry

I have a couple of computers (Windows XP SP1) that have port 5000 open. How
can I determine what is requesting it to be open and more importantly, how
to close the port?

Thanks in advance,
Enrique


Any advise given is my attempt to show appreciation for all
the excellent help I've received here but I'm no MVP so it
may only apply NUGS (Normally, Usually, Generally, Sometimes :)
 
From a command prompt;
netstat -aon
then;
tasklist
now match up the port > PID > Image name

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I have a couple of computers (Windows XP SP1) that have port 5000 open.
How
| can I determine what is requesting it to be open and more importantly, how
| to close the port?
|
| Thanks in advance,
| Enrique
|
|
 
Thanks, and that will solve my problem until it reboots. Unfortunately, I
can't search for the file because this process is starting under
svchost.exe which could be anything. Any ideas on tracking this issue down
further?

Enrique
 
Then run;
tasklist /svc
to break out each service.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thanks, and that will solve my problem until it reboots. Unfortunately, I
| can't search for the file because this process is starting under
| svchost.exe which could be anything. Any ideas on tracking this issue
down
| further?
|
| Enrique
 
Hello Enrique,

Thank you for posting in the Windows XP VAP newsgroup!

From your post, my understanding on this issue is: You want to know how to
determine what service is using port 5000 and how to close the port. If I'm
off base, please feel free to let me know.

Thanks for Dave Patrick's input! He gave us the right method. Also thanks
to Larry!

Command "netstat -aon" will list all the connections and listening ports
with the related process ID. After getting the process ID, you can type
"tasklist" in command line prompt to know which application is using the
port.

If the 5000 port is used by certain system process, we do not suggest you
to manually terminate the process. Because this will lead to uncertain
system malfunctions.

We believe that a firewall product such as Microsoft ISA Server 2004 can
easily block the port, in case it really needs to be blocked.

For more information about Microsoft ISA Server, please refer to below link
:

http://www.microsoft.com/isaserver/default.mspx

Please let me know if you have any other concerns, or need anything else.


Kenxl Zou, MCSE
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Enrique,

Just checking in to see if the suggestions were helpful. Please let us know
if you would like further assistance.

Have a great day!

Kenxl Zou, MCSE
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| X-Tomcat-ID: 123344350
| References: <[email protected]>
<[email protected]>
<#[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Kenxl Zou (MSFT))
| Organization: Microsoft
| Date: Sat, 30 Apr 2005 08:54:52 GMT
| Subject: Re: How to close open ports
| X-Tomcat-NG: microsoft.public.windowsxp.general
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.windowsxp.general
| Lines: 39
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windowsxp.general:378290
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hello Enrique,
|
| Thank you for posting in the Windows XP VAP newsgroup!
|
| From your post, my understanding on this issue is: You want to know how
to
| determine what service is using port 5000 and how to close the port. If
I'm
| off base, please feel free to let me know.
|
| Thanks for Dave Patrick's input! He gave us the right method. Also thanks
| to Larry!
|
| Command "netstat -aon" will list all the connections and listening ports
| with the related process ID. After getting the process ID, you can type
| "tasklist" in command line prompt to know which application is using the
| port.
|
| If the 5000 port is used by certain system process, we do not suggest you
| to manually terminate the process. Because this will lead to uncertain
| system malfunctions.
|
| We believe that a firewall product such as Microsoft ISA Server 2004 can
| easily block the port, in case it really needs to be blocked.
|
| For more information about Microsoft ISA Server, please refer to below
link
| :
|
| http://www.microsoft.com/isaserver/default.mspx
|
| Please let me know if you have any other concerns, or need anything else.
|
|
| Kenxl Zou, MCSE
| Microsoft Online Partner Support
|
| Get Secure! - www.microsoft.com/security
| =====================================================
| When responding to posts, please "Reply to Group" via your newsreader so
| that others may learn and benefit from your issue.
| =====================================================
| This posting is provided "AS IS" with no warranties, and confers no
rights.
|
|
 
Kenxl said:
Hi Enrique,

Just checking in to see if the suggestions were helpful. Please let us know
if you would like further assistance.

Have a great day!

and before that:
| Hello Enrique,
|
| Thank you for posting in the Windows XP VAP newsgroup!
|
| From your post, my understanding on this issue is: You want to know how
to
| determine what service is using port 5000 and how to close the port. If
I'm
| off base, please feel free to let me know.
|
| Thanks for Dave Patrick's input! He gave us the right method. Also thanks
| to Larry!
|
| Command "netstat -aon" will list all the connections and listening ports
| with the related process ID. After getting the process ID, you can type
| "tasklist" in command line prompt to know which application is using the
| port.

For me with the 'Home Edition' with Service Pack 2 installed i get:
C:\Documents and Settings\UserName>tasklist
'tasklist' is not recognized as an internal or external command,
operable program or batch file.

The OP wrote "I have a couple of computers (Windows XP SP1)" and didn't
profess 'Pro|Home Edition'-variants for them.

<http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/tasklist.mspx>
¿Is the 'tasklist' command maybe 'Pro Edition' only? I can't tell for
sure from that page.

Strange, but i can't find the 'tasklist' command in the index of M$
Press' "Windows XP [SP1] Inside Out" nor in another book dealing with
both variants.
 
Hi Enrique,

We have not heard from you regarding this issue. Please post back here at
your convenience if we can assist further.

Enjoy your day!

Have a great day!

Kenxl Zou, MCSE
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| X-Tomcat-ID: 47846881
| References: <[email protected]>
<[email protected]>
<#[email protected]>
<[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Kenxl Zou (MSFT))
| Organization: Microsoft
| Date: Tue, 03 May 2005 02:30:00 GMT
| Subject: Re: How to close open ports
| X-Tomcat-NG: microsoft.public.windowsxp.general
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.windowsxp.general
| Lines: 75
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windowsxp.general:380187
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Enrique,
|
| Just checking in to see if the suggestions were helpful. Please let us
know
| if you would like further assistance.
|
| Have a great day!
|
| Kenxl Zou, MCSE
| Microsoft Online Partner Support
|
| Get Secure! - www.microsoft.com/security
| =====================================================
| When responding to posts, please "Reply to Group" via your newsreader so
| that others may learn and benefit from your issue.
| =====================================================
| This posting is provided "AS IS" with no warranties, and confers no
rights.
| --------------------
| | X-Tomcat-ID: 123344350
| | References: <[email protected]>
| <[email protected]>
| <#[email protected]>
| | MIME-Version: 1.0
| | Content-Type: text/plain
| | Content-Transfer-Encoding: 7bit
| | From: (e-mail address removed) (Kenxl Zou (MSFT))
| | Organization: Microsoft
| | Date: Sat, 30 Apr 2005 08:54:52 GMT
| | Subject: Re: How to close open ports
| | X-Tomcat-NG: microsoft.public.windowsxp.general
| | Message-ID: <[email protected]>
| | Newsgroups: microsoft.public.windowsxp.general
| | Lines: 39
| | Path: TK2MSFTNGXA01.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windowsxp.general:378290
| | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| |
| | Hello Enrique,
| |
| | Thank you for posting in the Windows XP VAP newsgroup!
| |
| | From your post, my understanding on this issue is: You want to know how
| to
| | determine what service is using port 5000 and how to close the port. If
| I'm
| | off base, please feel free to let me know.
| |
| | Thanks for Dave Patrick's input! He gave us the right method. Also
thanks
| | to Larry!
| |
| | Command "netstat -aon" will list all the connections and listening
ports
| | with the related process ID. After getting the process ID, you can type
| | "tasklist" in command line prompt to know which application is using
the
| | port.
| |
| | If the 5000 port is used by certain system process, we do not suggest
you
| | to manually terminate the process. Because this will lead to uncertain
| | system malfunctions.
| |
| | We believe that a firewall product such as Microsoft ISA Server 2004
can
| | easily block the port, in case it really needs to be blocked.
| |
| | For more information about Microsoft ISA Server, please refer to below
| link
| | :
| |
| | http://www.microsoft.com/isaserver/default.mspx
| |
| | Please let me know if you have any other concerns, or need anything
else.
| |
| |
| | Kenxl Zou, MCSE
| | Microsoft Online Partner Support
| |
| | Get Secure! - www.microsoft.com/security
| | =====================================================
| | When responding to posts, please "Reply to Group" via your newsreader
so
| | that others may learn and benefit from your issue.
| | =====================================================
| | This posting is provided "AS IS" with no warranties, and confers no
| rights.
| |
| |
|
|
 
You're welcome.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thanks to all. I was able to resolve my issue with your help.
|
| Enrique
 
Hi Enrique,

Appreciate your update and response. I am glad to hear that the problem has
been fixed. If you have any other questions or concerns, please do not
hesitate to contact us. It is always our pleasure to be of assistance.

Have a nice day!

Kenxl Zou, MCSE
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "Enrique" <[email protected]>
| References: <[email protected]>
<[email protected]>
<#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: How to close open ports
| Date: Tue, 10 May 2005 10:29:27 -0500
| Lines: 146
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.windowsxp.general
| NNTP-Posting-Host: securezone.sabinevalley.org 63.68.180.98
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp1
3.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windowsxp.general:385051
| X-Tomcat-NG: microsoft.public.windowsxp.general
|
| Thanks to all. I was able to resolve my issue with your help.
|
| Enrique
|
| | > Hi Enrique,
| >
| > We have not heard from you regarding this issue. Please post back here
at
| > your convenience if we can assist further.
| >
| > Enjoy your day!
| >
| > Have a great day!
| >
| > Kenxl Zou, MCSE
| > Microsoft Online Partner Support
| >
| > Get Secure! - www.microsoft.com/security
| > =====================================================
| > When responding to posts, please "Reply to Group" via your newsreader so
| > that others may learn and benefit from your issue.
| > =====================================================
| > This posting is provided "AS IS" with no warranties, and confers no
| > rights.
| >
| > --------------------
| > | X-Tomcat-ID: 47846881
| > | References: <[email protected]>
| > <[email protected]>
| > <#[email protected]>
| > <[email protected]>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > | From: (e-mail address removed) (Kenxl Zou (MSFT))
| > | Organization: Microsoft
| > | Date: Tue, 03 May 2005 02:30:00 GMT
| > | Subject: Re: How to close open ports
| > | X-Tomcat-NG: microsoft.public.windowsxp.general
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.windowsxp.general
| > | Lines: 75
| > | Path: TK2MSFTNGXA01.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windowsxp.general:380187
| > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| > |
| > | Hi Enrique,
| > |
| > | Just checking in to see if the suggestions were helpful. Please let us
| > know
| > | if you would like further assistance.
| > |
| > | Have a great day!
| > |
| > | Kenxl Zou, MCSE
| > | Microsoft Online Partner Support
| > |
| > | Get Secure! - www.microsoft.com/security
| > | =====================================================
| > | When responding to posts, please "Reply to Group" via your newsreader
so
| > | that others may learn and benefit from your issue.
| > | =====================================================
| > | This posting is provided "AS IS" with no warranties, and confers no
| > rights.
| > | --------------------
| > | | X-Tomcat-ID: 123344350
| > | | References: <[email protected]>
| > | <[email protected]>
| > | <#[email protected]>
| > | | MIME-Version: 1.0
| > | | Content-Type: text/plain
| > | | Content-Transfer-Encoding: 7bit
| > | | From: (e-mail address removed) (Kenxl Zou (MSFT))
| > | | Organization: Microsoft
| > | | Date: Sat, 30 Apr 2005 08:54:52 GMT
| > | | Subject: Re: How to close open ports
| > | | X-Tomcat-NG: microsoft.public.windowsxp.general
| > | | Message-ID: <[email protected]>
| > | | Newsgroups: microsoft.public.windowsxp.general
| > | | Lines: 39
| > | | Path: TK2MSFTNGXA01.phx.gbl
| > | | Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.windowsxp.general:378290
| > | | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| > | |
| > | | Hello Enrique,
| > | |
| > | | Thank you for posting in the Windows XP VAP newsgroup!
| > | |
| > | | From your post, my understanding on this issue is: You want to know
| > how
| > | to
| > | | determine what service is using port 5000 and how to close the
port.
| > If
| > | I'm
| > | | off base, please feel free to let me know.
| > | |
| > | | Thanks for Dave Patrick's input! He gave us the right method. Also
| > thanks
| > | | to Larry!
| > | |
| > | | Command "netstat -aon" will list all the connections and listening
| > ports
| > | | with the related process ID. After getting the process ID, you can
| > type
| > | | "tasklist" in command line prompt to know which application is using
| > the
| > | | port.
| > | |
| > | | If the 5000 port is used by certain system process, we do not
suggest
| > you
| > | | to manually terminate the process. Because this will lead to
uncertain
| > | | system malfunctions.
| > | |
| > | | We believe that a firewall product such as Microsoft ISA Server 2004
| > can
| > | | easily block the port, in case it really needs to be blocked.
| > | |
| > | | For more information about Microsoft ISA Server, please refer to
below
| > | link
| > | | :
| > | |
| > | | http://www.microsoft.com/isaserver/default.mspx
| > | |
| > | | Please let me know if you have any other concerns, or need anything
| > else.
| > | |
| > | |
| > | | Kenxl Zou, MCSE
| > | | Microsoft Online Partner Support
| > | |
| > | | Get Secure! - www.microsoft.com/security
| > | | =====================================================
| > | | When responding to posts, please "Reply to Group" via your
newsreader
| > so
| > | | that others may learn and benefit from your issue.
| > | | =====================================================
| > | | This posting is provided "AS IS" with no warranties, and confers no
| > | rights.
| > | |
| > | |
| > |
| > |
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top