Skip to content

Instantly share code, notes, and snippets.

@swaters86
Created September 8, 2014 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swaters86/a1c442409aaf74a707d7 to your computer and use it in GitHub Desktop.
Save swaters86/a1c442409aaf74a707d7 to your computer and use it in GitHub Desktop.
netstat -a -n | findstr ":25"
:: -n ensures all ports will be numerical, i.e. not returned as translated to service names.
:: -a will ensure you search all connections (TCP, UDP, listening...)
:: In the find string you must include the colon, as the port qualifier, otherwise the number may match either local or foreign addresses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment