Port Exhaustion Unable to login

Issue: 

You Can't login to server using your domain account. Only local account can login to the server and if you login you can see on the event viewer TCPIP 4231 and 4227.


Reboot will resolve the issue but it will return since you didn't know what application or port cause the port exhaustion.


Solution:

To know what cause the port exhaustion you need to run the below commands. before rebooting. from that result you can see the highest Count and the service name port. 

Try stop and disable that service and test login using your domain account.

Get-NetTCPConnection | Group-Object -Property State, OwningProcess | Select -Property Count, Name, @{Name="ProcessName";Expression={(Get-Process -PID ($_.Name.Split(',')[-1].Trim(' '))).Name}}, Group | Sort Count -Descending

Below also helps to remotely stop and disabled that service name without logging in on the server

get-Service -Computername ServerName -Name ServiceName

Get-Service -ComputerName ServerName -Name ServiceName | Stop-Service -Verbose

Set-Service -ComputerName ServerName ServiceName -StartupType Disabled

get-Service -Computername ServerName -Name ServiceName

references:

https://docs.microsoft.com/en-us/windows/client-management/troubleshoot-tcpip-port-exhaust


Comments

Popular posts from this blog

Email Source

Unable to RDP - Can't Connect to Remote Computer

Domain Controller Authentication