VPN - Client to Network can see machines by IP but not by \\<sharename>

Attic

Diamond Member
Jan 9, 2010
4,282
2
76
I've been digging on this issue for a few days now and need to some eyes to see if i'm missing something obvoius or basic that i'm overlooking and not aware of.

My intent is to VPN into home network and have access to network shared drives and also steam in home streaming from a host computer on the home network.

I can connect to the home network via L2TP VPN, but I can only access network stuff via IP, not their hostname.

I'm confused here on terminology, I've read alot that pertains to a DNS issue relating to what i've encountered. How does DNS relate to the hostnames?

Here is a ipconfig /all, and a tracert while on the VPN connection labled "Test VPN Connection".


Windows IP Configuration

Host Name . . . . . . . . . . . . : Laptop
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

PPP adapter Test VPN Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Test VPN Connection
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.0.1.242(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 0.0.0.0
DNS Servers . . . . . . . . . . . : 10.0.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection 3:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Windows Adapter V9
Physical Address. . . . . . . . . : 00-FF-A6-65-EC-F2
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection 3:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter #
2
Physical Address. . . . . . . . . : 2A-B2-BD-3F-62-B3
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter
Physical Address. . . . . . . . . : 2A-B2-BD-3F-62-B4
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 7260
Physical Address. . . . . . . . . : 28-B2-BD-3F-62-B3
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::9cbe:cb9c:41bf:547d%15(Preferred)
IPv4 Address. . . . . . . . . . . : 172.20.10.2(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.240
Lease Obtained. . . . . . . . . . : Wednesday, December 31, 2014 8:43:07 AM
Lease Expires . . . . . . . . . . : Thursday, January 01, 2015 8:29:28 AM
Default Gateway . . . . . . . . . : 172.20.10.1
DHCP Server . . . . . . . . . . . : 172.20.10.1
DHCPv6 IAID . . . . . . . . . . . : 371765949
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1B-7D-C2-83-28-D2-44-BB-72-4F

DNS Servers . . . . . . . . . . . : 172.20.10.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Ethernet Connection I218-V
Physical Address. . . . . . . . . : 28-D2-44-BB-72-4F
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.WilkinsNetwork:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{EC79F478-24DC-4233-BB91-1DC7C0B193E0}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 12:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{C2614D67-E376-4CF2-9501-EE78D666E7E6}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{A665ECF2-0F41-4F6F-8765-665951135BE7}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{80A5EBF5-B3EE-4324-A33F-A51B4FAD8F72}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #5
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6abd:18d6:684:f5ff:fe0d(Prefe
rred)
Link-local IPv6 Address . . . . . : fe80::18d6:684:f5ff:fe0d%20(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{3C462007-1E4E-4061-B926-71661D213CBF}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #7
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

C:\Users\Steve>ping 10.0.1.33

Pinging 10.0.1.33 with 32 bytes of data:
Reply from 10.0.1.33: bytes=32 time=468ms TTL=63
Reply from 10.0.1.33: bytes=32 time=489ms TTL=63
Reply from 10.0.1.33: bytes=32 time=435ms TTL=63
Reply from 10.0.1.33: bytes=32 time=450ms TTL=63

Ping statistics for 10.0.1.33:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 435ms, Maximum = 489ms, Average = 460ms

C:\Users\Steve>ping diskstation
Ping request could not find host diskstation. Please check the name and try agai
n.

C:\Users\Steve>tracert 10.0.1.33

Tracing route to DISKSTATION [10.0.1.33]
over a maximum of 30 hops:

1 478 ms 446 ms 439 ms 10.255.255.0
2 386 ms 509 ms 308 ms DISKSTATION [10.0.1.33]

Trace complete.

C:\Users\Steve>ping htpc-pc
Ping request could not find host htpc-pc. Please check the name and try again.

C:\Users\Steve>ping 10.0.1.32

Pinging 10.0.1.32 with 32 bytes of data:
Reply from 10.0.1.32: bytes=32 time=844ms TTL=127
Reply from 10.0.1.32: bytes=32 time=559ms TTL=127
Reply from 10.0.1.32: bytes=32 time=579ms TTL=127
Reply from 10.0.1.32: bytes=32 time=494ms TTL=127

Ping statistics for 10.0.1.32:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 494ms, Maximum = 844ms, Average = 619ms

C:\Users\Steve>tracert htpc-pc
Unable to resolve target system name htpc-pc.


C:\Users\Steve>

htpc-pc is the Steam Host and Diskstation is the NAS I want to access. I can access both systems by IP, but Steam Streaming requires name of the PC and my mapped network drives don't work to the Diskstation. The subnet of the VPN connection is different than my home connection.

What would explain the tracert to diskstation 1st and 2nd entries vs just the one entry in my 2nd post? My working knowledge insists that VPN puts me on the home network as if I signed on from the home network, but this isn't the case, i'm wondering what else I need to do or setup to get that connection as if I were sitting on the home network. Home network is Workgroup Win7 Pro systems, no WINS server, I'm unclear on what's handling DNS.

I thought the solution here might be a single setting, but i'm wondering if I'm going about it wrong and need to setup the home network differently for this to work where VPN can browse by hostnane rather than IP.
 
Last edited:

Attic

Diamond Member
Jan 9, 2010
4,282
2
76
When on the home network locally.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Steve>tracert 10.0.1.33

Tracing route to 10.0.1.33 over a maximum of 30 hops

1 76 ms 203 ms 101 ms 172.20.10.1
2 443 ms 307 ms 365 ms 68.28.49.69
3 * * * Request timed out.
4 * ^C
C:\Users\Steve>tracert 10.0.1.33

Tracing route to DISKSTATION [10.0.1.33]
over a maximum of 30 hops:

1 3 ms 2 ms 2 ms DISKSTATION [10.0.1.33]

Trace complete.

C:\Users\Steve>tracert htpc-pc

Tracing route to HTPC-PC [10.0.1.32]
over a maximum of 30 hops:

1 2 ms 2 ms 2 ms HTPC-PC [10.0.1.32]

Trace complete.

C:\Users\Steve>
 

DrGreen2007

Senior member
Jan 30, 2007
748
0
0
In your VPN 'server' is there an option to set a certain DNS server to use, maybe under the DHCP allocation section of the VPN server?

When connected over VPN, ping to diskstation fails, but what about diskstation.fulldomainname ?
 

CubanlB

Senior member
Oct 24, 2003
562
0
76
Is the DNS server you have configured your home router?

It may not be able to resolve local hostnames, because it does not know them.

Locally you are resolving hostnames via broadcast (Likely).

To test this locally you can issue a nslookup htpc-pc 10.0.1.1 from a windows or linux shell.

If that doesn't resolve it is because you local router has no idea of any of your local hostnames.

You may be able to define them somewhere, or just continue using ip address.
 

brshoemak

Member
Feb 11, 2005
166
4
81
Without a DNS or WINS server (NETBIOS) on the local end (your house), your only real option is to edit your hosts file, which I am usually loathe to do.

Edit the hosts file on your computer and add the IPs along with their corresponding computer/resource name.

Just keep in mind that your computer will look to the hosts file before almost anything else so even if you change the IP on the server, your computer will still point to the old IP address - regardless of if you are local or on the other side of the VPN.

Here's how you access your hosts file.
 
Last edited:

azazel1024

Senior member
Jan 6, 2014
901
2
76
Without a DNS or WINS server (NETBIOS) on the local end (your house), your only real option is to edit your hosts file, which I am usually loathe to do.

Edit the hosts file on your computer and add the IPs along with their corresponding computer/resource name.

Just keep in mind that your computer will look to the hosts file before almost anything else so even if you change the IP on the server, your computer will still point to the old IP address - regardless of if you are local or on the other side of the VPN.

Here's how you access your hosts file.

Exactly the above.

Personally I would not edit the host file and I would just access the services you need through the IP address of the service. Doesn't prevent you from mapping network drives or anything else like that by IP instead of by hostname.
 

Attic

Diamond Member
Jan 9, 2010
4,282
2
76
Thanks for clearing this up.

The VPN server is done through built in solution an Edgerouter Lite and the VPN setup has it's DNS property set to 10.0.1.1. My router (10.0.1.1) is using OpenDNS for it's DNS servers. I don't have a domain name to test diskstation.fulldomainname. I'm on a workgroup, if i'm unclear on a concept here please correct me.

Yes nslookup htpc-pc 10.0.1.1 fails to resolve properly on local network.

Editing the hosts file resolved the issue for mapped drives not showing up by hostname when connected through VPN and it lets me ping hostnames with success while connected through VPN. I set hosts file back to default after trying that out.

I wasn't able to resolve the steam in home streaming through VPN. It looks like my Steam host machine must broadcast something on the local network that editing hosts file doesn't resolve for my VPN client. That's a minor thing as I was more interested in the concept than actually trying to do in home streaming through VPN as a go to solution.
 
Last edited:

azazel1024

Senior member
Jan 6, 2014
901
2
76
Likely you are missing bits you need with the Steam in home streaming. Other issue you are going to run in to, is you'd be running a latency sensitive application over the internet, and AFAIK, one that also requires a fair whack of bandwidth. If you could get it working, I don't think it would be usable.

However, the experiment is certainly worth a go.