How can I find the IP address of a mapped Network drive in Windows 10?
-
As I explained in the [Stack Overflow version of this question](http://stackoverflow.com/questions/35152005/how-can-i-find-the-ip-address-of-a-mapped-network-drive-in-windows-10), you may want to include some more detail in your question. – CodeCaster Feb 02 '16 at 14:05
-
You may think that, I couldn't possibly comment. As someone who doesn't know much in this field, finding the right words / terms to use isn't easy. That's what asking questions is all about. – Adam B Feb 02 '16 at 15:07
-
If it's a path that starts with `\\ ` apparently those are called UNC paths... which aren't the same thing as a mapped network drive. I could for example map `\\someServer\directory\goodies` to be drive `G:\ ` on my local machine. – Jeff B Apr 07 '17 at 16:10
4 Answers
Your question is two-pronged. A network share has no IP address, but the host that shares it has.
First, you want to resolve a drive letter to an UNC path, second you want to resolve the IP address of the host of that UNC path.
There are multiple ways to do this. See How do I find where a network drive is mapped to in Windows 7? and List mapped network drives from the command line to text file.
One way that's shown there: if you type net use in the command prompt, you'll get output like this:
Status Local Remote Network
-------------------------------------------------------------------------------
OK Z: \\some-host\some-share
Now you see the drive (under "Local") and the UNC path (under "Remote"). The hostname of the UNC path is the part between the first two backslashes and the backslash after that (some-host in \\some-host\).
Then you can simply type nslookup some-host to find the IP address of that host:
C:\>nslookup some-host
Server: your-dns
Address: 192.168.1.1
Name: some-host
Address: 192.168.1.42
The IP you're looking for in this case is 192.168.1.42.
- 1,704
- 1
- 12
- 13
-
1Im connected, and I can do nslookup but when I do ping it says DNS request timed out, server unknown ! – Paul Taylor Nov 02 '18 at 12:29
-
-
-
Open CMD
example Press Windows Key and R
type ping then the drive name example below
C:\Users\User>ping htestrna01
Pinging htestrna01.ad.com [11.30.137.214] with 32 bytes of data:
Reply from **11.30.137.214**: bytes=32 time=1ms TTL=128
Reply from 11.30.137.214: bytes=32 time<1ms TTL=128
Reply from 11.30.137.214: bytes=32 time<1ms TTL=128
Reply from 11.30.137.214: bytes=32 time<1ms TTL=128
Ping statistics for 11.30.137.214: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 1ms, Average = 0ms
Then you will get the ip.
- 2,480
- 1
- 16
- 23
-
8That gives you the IP for a machine, but the question is how to get an IP from a mapped network drive. – CodeCaster Feb 02 '16 at 14:04
-
The IP is of the network drive if it is connected to the machine. – NetworkKingPin Feb 02 '16 at 14:06
-
6
-
I know that. That is how we have them setup at my job facilty we have the drive letter and the drive name which is the shared network drive. – NetworkKingPin Feb 02 '16 at 14:10
-
3You're missing the step for going from the mapped network drive to the host that the share is on. – CodeCaster Feb 02 '16 at 14:10
-
1Hi guys, this has answered it thanks. The mapped drive is a machine in its own right. I tried a lot of pinging in command prompt, but I'd been entering ping //nas-name or ping /nas-name etc. Now I see that you enter the name without any slashes, and it worked. – Adam B Feb 02 '16 at 15:05
Open Network Connections by clicking the Start button Picture of the Start button, and then clicking Control Panel. In the search box, type adapter, and then, under Network and Sharing Center, click View network connections.
Select an active network connection, and then, in the toolbar, click View status of this connection. (You might need to click the chevron Picture of the chevron icon to find this command.) Click Details.
- 17
- 3
-
Thanks for the help. I have a NAS mapped onto my machine. When I go to View Network Connections, the only connection there is the Local Area Connection one, no mention of the network drive. – Adam B Feb 02 '16 at 12:12
-
@AdamB, you are confusing physical connections with logical connections. your "Local Area Connection" is your physical network adapter, so all logical connections use it to communicate over the network. Logical connections, like those to a website or a network share or any other service are visible to you using commands like netstat, nbtstat, etc. If you want a gui tool to inspect connections, use Sysinternals TCPView. – Frank Thomas Feb 02 '16 at 13:11
-
Go to "Map network drive" in "Computer" and select the "Drive" from scroll down menu. It will show IP of the Drive automatically.
- 9
- 1