How to Obtain Port, Protocol and Service being used.

Member_2_7966113
Member_2_7966113 used Ask the Experts™
on
Hello Experts,

Can someone let me know how to obtain the Port, Service and Protocol being used on our Windows Servers 2012 and Windows Professional, please

cpatte7372
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
The Protocol being used is part of the Network Card Properties. Normally TCP/IP.  

The Ports used will vary on application. No one port. HTTP normally uses port 80, FTP port 22, 23 and so on.

What do you mean by Service?   Many services are always running in Windows.

You can get lots of information with ipconfig or ipconfig /all.   That gives you network properties too.

Here is a brief tutorial:  https://www.digitalcitizen.life/command-prompt-advanced-networking-commands
Datacenter platform engineer Lindows
Commented:
Hi,

Tricky question, if you would like to see what is happening over the ethernet you could enter below in a dos prompt:

Netstat -ano

If you want to see the active threads use:

Netstat -ano | findstr "ESTABLISHED"

It will show you the protocol, who initiates a call to where and what its process id is. The PID you can find in taskmanager (add column PID)

This will hopefully bring you some info you need.

Cheers.

Commented:
If I understand you question well, you want to find what protocol, port for each running service. I would use Process Explorer and view the Properties of each service. There is quite some documentation on the net on how to use Process Explorer. You can also use TCPView (also from www.sysinternal.com).

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial