Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to identify ports to open on Firewall?

Featured Replies

Here is a suggestion to find which ports needed to open on the firewall

Identifying the ports

  1. Start the program and try to use its network features. For example, with a multimedia program, try to start an audio stream. With a Web server, try to start the service.

  2. Click Start, click Run, type cmd, and then click OK.

  3. At the command prompt, type netstat ano > netstat.txt, and then press ENTER. This command creates the Netstat.txt file. This file lists all the listening ports.

    post-1-14033071792631_thumb.jpg

  4. At the command prompt, type tasklist > tasklist.txt, and then press ENTER. If the program in question runs as a service, type tasklist /svc > tasklist.txt instead of tasklist > tasklist.txt so that the services that are loaded in each process are listed.

    post-1-14033071793004_thumb.jpgpost-1-1403307179333_thumb.jpg

  5. Open the Tasklist.txt file, and then locate the program that you are troubleshooting. Write down the Process Identifier for the process, and then open the Netstat.txt file. Note any entries that are associated with that Process Identifier and the protocol that is used.

    post-1-14033071793625_thumb.jpg

If the port numbers for the process are less than 1024, the port numbers will probably not change. If the numbers that are used are greater than or equal to 1024, the program may use a range of ports. Therefore, you may not be able to resolve the issue by opening individual ports.

netstat_2text.JPG.e77db5f75bdb7cc1aa7c76

tasklist_export.JPG.0656fc71da3e93dd37bc

tasklist_export2.JPG.f3c9773f61457cbc90b

tasklist_export3.JPG.24aba8151c51b867cd6

  • Author

if you are running Vista and get the error



x: Windows Sockets initialization failed: 5





It's a Vista issue





From Microsoft



Posted by Microsoft on 2/6/2009 at 7:13 PM



Hi, there was a bogus message print in the Vista version of netstat.exe that will display “x: Windows Sockets initialization failed: 5” everytime netstat fails to open a process handle for displaying the ownership information (needed only in the -b switch). A user mode process cannot open a handle to system process because of security reasons and netstat will display “Can not obtain ownership information” for such endpoints or connections owned by system process. The bogus error message is removed in windows 7 and you should no longer see it if you try it on Windows 7 RC builds (when they are available to you).





Thanks for reporting the problem



Ali





Microsoft solution is to give them more money for the upgraded Operating System to fix the issue with Vista. Proof that Microsoft is forcing Vista users to upgrade because they will not support an OS that sux like Vista does.



  • 5 years later...

Wouldn’t surprise me if a firewall along the way was blocking ICMP (ping) since most applications actually only need certain ports open to function. Ping is not a very reliable testing mechanism to validate if something is up and working.

Simple test that everyone has access to is telnet (ex. telnet ipaddress:port) to validate the path is open all the way through. Of course my favorite is either tcptraceroute ipaddress port (which performs a traceroute and validates every hop has that port open and if anywhere that port is blocked you can see.

Others prefer using traceroute ipaddress –T –p port

-T stands for TCP

That is a long way of saying, I would suggest finding what port the server is expecting and try one of the above functions to test if the server is up and working.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.