Guides

VPN connects but nothing works? Check DNS, routing and authentication in order

A simple method for finding out whether a VPN problem is authentication, routing or DNS, using built-in Windows commands.

“The VPN is connected but I cannot reach anything” is one of the most common support requests. The trick is to stop guessing and test one layer at a time. This method works for most VPN clients.

Step 1: Is the tunnel really up?

Check that the client shows connected and received an IP address:

ipconfig /all

Look for the VPN adapter. It should have an IP address from the VPN range. If it does not, the problem is authentication or the client, not your network.

If the connection fails or drops straight away, check:

  • Username and password, and any expired password or multi-factor prompt.
  • The account’s permission to use the VPN.
  • The PC’s date and time, because certificate-based VPNs fail when the clock is wrong.

Step 2: Can you reach something by IP address?

Test a server on the other side by IP, not by name:

ping 10.0.0.10
Test-NetConnection 10.0.0.10 -Port 443
  • Works: routing is fine. Go to step 3.
  • Fails: it is a routing or firewall problem. Check the next section.

Routing and firewall checks

route print
tracert 10.0.0.10
  • Is there a route to the remote network through the VPN adapter?
  • If you use split tunnelling, make sure the remote subnet is included in the routes the VPN pushes.
  • Does the remote subnet overlap with the home or office network you are on? Two networks both using 192.168.1.0/24 is a classic cause.
  • Is a firewall on either side blocking the traffic?

Note that some servers block ping on purpose, so also test with Test-NetConnection on the actual port.

Step 3: Does name resolution work?

If IP addresses work but names do not, the problem is DNS:

nslookup fileserver.company.local
nslookup fileserver.company.local 10.0.0.2

The second command asks your internal DNS server directly (replace the address with yours).

  • Second works, first fails: the PC is not using the internal DNS server over the VPN. Fix the DNS settings pushed by the VPN, or the adapter’s DNS order.
  • Both fail: check the DNS server itself and its records.

You can also clear the local cache while testing:

ipconfig /flushdns

Quick summary

Symptom Likely layer First thing to check
Cannot connect at all Authentication Credentials, MFA, certificate, clock
Connected, cannot ping IPs Routing / firewall route print, overlapping subnets
IPs work, names do not DNS DNS server on the VPN adapter

Work down the table in that order and you will find most VPN faults within a few minutes.