cancel
Showing results for 
Search instead for 
Did you mean: 

How to check ports in Windows?

Former Member
0 Kudos

I would like to know if a specific port (eg.PORT=1527) is free or in use.

I am using Windows 2003 Server Enterprise edition x64 with SP2.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

netstat -a

Regards,

Nikunj Thaker

Former Member
0 Kudos

Hi,

For a dynamic view, you can also download the free utility TCPVIEW from Sysinternals (owned by Microsoft now).

Check http://technet.microsoft.com/en-us/sysinternals/default.aspx

All these utilities are really a must for Windows system admins.

Regards,

Olivier

Answers (1)

Answers (1)

former_member182034
Active Contributor
0 Kudos

Hi Prasad,

check following information about port.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=DSD.WORLD))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 10.2.0.2.0 - Produ
ction
Start Date                29-DEC-2008 15:20:19
Uptime                    4 days 4 hr. 3 min. 25 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   E:\oracle\DSD\102\network\admin\listener.ora
Listener Log File         E:\oracle\DSD\102\network\log\listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\DSD.WORLDipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\DSDipc)))
  *(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sapdsd)(PORT=1527)))*
Services Summary...
Service "DSD" has 1 instance(s).
  Instance "DSD", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

in above message... you are seeing port number 1527.... its mean it is occupied.

regards,

majamil