Share via

Port issue

Peter Liang 3,286 Reputation points
2026-02-10T05:05:20.9+00:00

Hi,

How to resolve it below?

Get-NetTCPConnection : No MSFT_NetTCPConnection objects found with property 'LocalPort' equal to '7060'. Verify the

value of the property and retry.

At line:1 char:1

  • Get-NetTCPConnection -LocalPort 7060
  • 
        + CategoryInfo          : ObjectNotFound: (7060:UInt16) [Get-NetTCPConnection], CimJobException
    
        + FullyQualifiedErrorId : CmdletizationQuery_NotFound_LocalPort,Get-NetTCPConnection
    
Microsoft Security | Microsoft Defender | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. AgaveJoe 31,266 Reputation points
    2026-02-11T10:25:49.2133333+00:00

    It looks like there’s a misunderstanding regarding how you're connecting. If the application is hosted on a remote server, you cannot use localhost or check the local port on your client machine to verify the connection.

    The Get-NetTCPConnection command you ran only looks at your local machine. You need to ensure you are using the server’s actual IP address or domain name in your connection string. Additionally, verify that the server's firewall is configured to allow traffic on port 7060 from external clients and that you have configure the binding on the remote server.


  2. Q&A Assist
    2026-02-10T05:05:59.3566667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error message you are encountering indicates that there are no TCP connections currently using the local port 7060. Here are a few steps you can take to troubleshoot and resolve this issue:

    1. Verify the Port: Ensure that the application or service you expect to be using port 7060 is running. If the service is not active, there will be no TCP connections associated with that port.
    2. Check Firewall Settings: Make sure that your firewall settings allow traffic on port 7060. Sometimes, firewall rules can block connections, leading to no active connections being found.
    3. Use Different Parameters: If you are looking for established connections, you can try running the command without specifying the -LocalPort parameter to see all current TCP connections:
         Get-NetTCPConnection
      
      This will help you determine if there are any connections at all.
    4. Check for Listening Ports: You can check if any application is listening on port 7060 by using the following command:
         Get-NetTCPConnection -State Listen
      
      This will show you if any application is set to accept connections on that port.
    5. Restart the Service: If the application is supposed to be using port 7060 but is not showing up, try restarting the application or service that is expected to use that port.

    If after these steps you still cannot find any connections on port 7060, it may indicate that the application is not configured correctly or is not running as expected.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.