{
  "id": 15199821,
  "title": "App can't connect to the server? Use Test-NetConnection before you reinstall",
  "url": "https://urgent.news/2026/10/17/app-cant-connect-to-the-server-use-test-netconnection-before-you",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-17T13:12:43.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/supbrice/app-cant-connect-to-the-server-use-test-netconnection-before-you-reinstall-2igl"
  },
  "original_language": "en",
  "account": "Encountering an error message stating \"Unable to connect to the server\" is a common issue that support teams often encounter. While the initial inclination may be to reinstall the problematic application, it is advisable to first investigate whether the root cause lies within the network or the application itself. In Windows, PowerShell offers a built-in command, Test-NetConnection, which aids in diagnosing precisely this scenario. Here's how to use it effectively.\n\nTo begin, identify the server's name and port number referenced by the application. This information can typically be found in the application's settings, vendor documentation, or internal knowledge base. Common ports involved are 443 for HTTPS web services, 445 for Windows file shares (SMB), 3389 for Remote Desktop, and 1433 for Microsoft SQL Server (default instance).\n\nNext, open PowerShell and execute the command: Test-NetConnection appserver01 -Port 443. Swap 'appserver01' with the actual server name and '443' with the application's specific port. This command initiates a TCP connection attempt to the specified port.\n\nUpon running the command, the output will indicate whether the name resolution succeeded or failed. If name resolution fails, the issue stems from the computer's inability to translate the server name into an IP address, pointing to a DNS issue. In such cases, the command Resolve-DnsName appserver01 can help identify the problem. If the user is accessing the server remotely, ensure they are connected to the company's VPN, as internal hostnames may only resolve within the corporate network.\n\nIf name resolution is successful, the command will return 'TcpTestSucceeded : True', confirming that the port is reachable from the user's computer. This suggests that the network path is clear, and the issue may lie within the application itself, such as login credentials, app version, configuration, or server-side services.\n\nOn the other hand, if 'TcpTestSucceeded : False', it indicates that while the server name was resolved, the connection attempt failed. At this point, the focus should shift to network-related factors, such as the VPN connection status, whether other users are experiencing the same issue, and the operational status of the service on the server. For a more detailed analysis, the -InformationLevel Detailed parameter can be appended to the command, providing additional insights into the traffic's journey.\n\nDocumenting the command used, the server name, port number, and the outcome in the support ticket is crucial. For example, a result might look like this: \"TcpTestSucceeded False to appserver01:443 from user's laptop on VPN.\" This detailed information enables the next support team to swiftly identify the next course of action, preventing unnecessary reinstallation of the application and ensuring a more efficient resolution.",
  "summary": "\"The app says it can't connect to the server\" is a classic help desk ticket. The tempting fix is to reinstall the app. Before you do that, spend one minute finding out whether the problem is the network path or the app itself. On Windows, PowerShell has a built-in command for exactly this: Test-NetConnection . What Test-NetConnection does Test-NetConnection (alias tnc ) checks whether your…",
  "key_points": [
    "Use Test-NetConnection to diagnose network issues before reinstalling apps.",
    "Identify server name and port from application settings or documentation.",
    "Run Test-NetConnection appserver01 -Port 443 to test connection."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}