Windows XP : how to check which port has been opened for a particular PC?

Posted on 2009-05-10
Last Modified: 2012-05-06

Since I just relocated to another office and hence the IP address of my PC need to change to another one due to network setting issues.  Yet, after I used the new IP address, I found that I can not access to my applications due to port not open.

In our company, the default is block all ports while when necessary, we need to apply for port opening for a particular application/access.  And we have quite a lot of firewalls as well (around one firewall per switch).  Since it is nearly impossible for our firewall admin to look at each firewall and sort out from each of it and find out whether I have opened which port for which server.

Therefore, I would like to ask whether there is a tool or way to sort it out for me and transfer all opened ports in my old IP address to the new one.  I can ask my colleague to setup a PC which using my old IP address in the old office but it is impossible to ask them to open all applications that need to open firewall port and validate the connections.

Kindly please help.

Question by:StanleyLMW

Expert Comment

ID: 24351259
I need more information. Do you know what ports you need opened? Do you know what ports were open on your old computer? An IT staff should know their firewalls, and how to open ports, are you sure they are not blowing you off? What firewall are you talking about, the network firewall, or a software firewall on your computer? Please provide more information about the infrastructure of  your problem.

Expert Comment

ID: 24351275
Hi Stanley, You will not be able to transfer your old port settings to your new location unless the routers are identical, but you can run a tool that will tell you which ports your programs are trying to use. Open the program you want to see the ports for.

Open a command prompt by going to Start, Run, and typing cmd then hit ok.
When the black window opens, type in netstat -a and then hit enter.

This will list all the Ip's and port numbers that are in use. You should be able
to tell which ip your program is trying to get to, and which port it is using to get out of the gateway.

If you need somthing even more descriptive, you can use TCPview
I hope this helps

-Scott E

Author Comment

ID: 24351532
Hi Technious,
For sure I have no complete pictures on what ports had been opened for my old computer or I just use the list and just re-apply for port opening will do.  I'm not sure whether our network firewall admin (not software firewall) do blow me off or not but they just told me that it is quite impossible for him to scan through all network firewalls for the existence of my old IP address.
Hi Scottyvanman,
Thanks for your suggestion, I have just test it but seems that it only report the port opened while the application/connection are in use but not for connections other than that.  Though it contains an option of showing all those unconnected endpoints but still can not show some connections that I know that it should have the port already been opened. (e.g.  I can get access to a remote server by mapping a share drive of it, but now it can not be, sure related to firewall issue but even I use the tool, it still can not show an entry with the IP address of the remote server that I had just mentioned).  Is it mean that it is impossible to do that ?

Expert Comment

ID: 24351588
it should be showing you the IP address that you are trying to get to, but I was of the inderstandng that you were trying to get the port numbers. What is it you are after here?
New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.


Expert Comment

ID: 24352419
Hi Stanley,

I'd suggest you to take this approach:
1. Identify exactelly what applications you need to use (Accounting software, internet file sharing, messanger software, etc) and take it one step at the time.
2. Take applications one by one, and check the error you get when trying to access it. It might be other issues than the firewall.
3. Check the documentation for your applications to see what ports it needs. For example, if you are using some accounting software that needs access to outside servers, read the documentation and/or contact their technical support to find out needed ports.
4. Ask the firewall admin to grant you access to those ports, and test each step carefully.

By doing wild guesses you will only loose time and have no result.
LVL 10

Accepted Solution

Kechka earned 250 total points
ID: 24352699
Try port scanner from to find out all open ports on computer.

Assisted Solution

sfarazmand earned 250 total points
ID: 24357063
You will need to find out what Firewall your old IP was attached to. Once there those settings can be easily found, then they can be recreated or transferred to the firewall managing your current location.

You can use Active Ports ( CurrPorts ( to check what ports are open, and what apps are using them.  I would download one and run the app then check what port it's using. Additionally, some apps use different ports for the different tasks they perform. So the easiest way to be sure you have all the settings is by finding the exceptions on the firewall.

Expert Comment

ID: 24359468
I am still having trouble understanding what you are looking for. Do you need the applications to communicate with the internet, or do you need the internet to communicate with your applications. It is difficult to say what ports your old IP have opened unless you have access to that Computer and it still has the same IP. I am with MariusSunchaser on this, you need to figure out what applications you need and in what way they need to communicate with the Internet, and then make the requests with the administrator.

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Stream live video from Raspberry Pi camera 22 114
networking details on centos 6.6 4 50
Public DNS? 10 52
Network access 4 21
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now