Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Windows Networking ====== ====== Handy Commands ====== ===== List Listening Ports ===== <code powershell> Get-NetTCPConnection -state listen | Select-Object -Property *,@{'Name' = 'ProcessName';'Expression'={(Get-Process -Id $_.OwningProcess).Name}} | select-object OwningProcess,ProcessName,LocalPort </code> =====Get host IP addresses===== Example of getting all IPv4 IP Addresses with Powershell <code powershell> Get-NetIPAddress -AddressFamily ipv4 | foreach {$_.IPAddress} </code> <code> ipconfig /all | findstr /i ipv4 </code> <code> ipconfig /all | sls ipv4 </code> ===Get public IP=== <code powershell> (curl ifconfig.me).Content </code> === Reset Network Stack === <code> netsh winsock reset netsh int IP reset ipconfig /flushdns </code> windows_networking.txt Last modified: 2023/10/09 22:47by mgupton