TCP connect to (<ip address> : <port>) failed

Nicolas P...e 0 Reputation points
2024-06-07T10:39:11.2533333+00:00

Hello,

On a new Win11 laptop, I can't succeed to connect a network drive to a File Share with PowerShell.

Here's a table listing the context:

Step Win10 Win11
Connected to Azure P2S VPN Yes Yes
Connection method PowerShell PowerShell
Resource group A / Storage account A / File share A (ip a.b.c.d / port 445) X: OK X: OK
Resource group A / Storage account A / File share B (ip a.b.c.d / port 445) Y: OK Y: OK
Resource group 1 / Storage account 1 / File share 1 (ip 1.2.3.4 / port 445) Z: OK Z: FAIL

The PowerShell script that fails give the following result:

Failed result
WARNING: TCP connect to (20.38.109.136 : 445) failed
WARNING: Ping to 20.38.109.136 failed with status: DestinationHostUnreachable
ComputerName : <File share 1>.file.core.windows.net
RemoteAddress : 20.38.109.136
RemotePort : 445
PingSucceeded : False
TcpTestSucceeded : False

Storage account 1 / File share 1 was using Version 1.0 as Minimum TLS Version. Thinking it was the explanation, I changed it to Version 1.2. But nothing changed, the problem persists.

Thanks for your help.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,871 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,596 Reputation points
    2024-06-07T15:56:04.49+00:00

    That DestinationHostUnreachable error usually points to a problem with the way the machine's networking parameters are configured, or a problem with the firewall configuration (still a network thing, though).

    Can you ping 127.0.0.1?

    Can you ping your NICs' gateway?

    Is the firewall configured to allow connections to the LAN?

    Does the machines' firewall allow the use of ping?

    Does a machine that can ping that IP address have any static routes that are missing from the new machine?

    Is the new machine supposed to get its network configuration from DHCP? If so, does it? And is it getting the correct values?

    0 comments No comments