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, you may want to include some more detail in your question.
    – CodeCaster
    Feb 2, 2016 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 2, 2016 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 7, 2017 at 16:10

4 Answers 4


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 [] with 32 bytes of data:

Reply from ****: bytes=32 time=1ms TTL=128
Reply from bytes=32 time<1ms TTL=128
Reply from bytes=32 time<1ms TTL=128
Reply from bytes=32 time<1ms TTL=128

Ping statistics for 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.

  • 8
    That gives you the IP for a machine, but the question is how to get an IP from a mapped network drive.
    – CodeCaster
    Feb 2, 2016 at 14:04
  • The IP is of the network drive if it is connected to the machine. Feb 2, 2016 at 14:06
  • 6
    Given a network drive N:, you cannot do ping N:.
    – CodeCaster
    Feb 2, 2016 at 14:06
  • 3
    You're missing the step for going from the mapped network drive to the host that the share is on.
    – CodeCaster
    Feb 2, 2016 at 14:10
  • 1
    Hi 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 2, 2016 at 15:05

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

Name:    some-host

The IP you're looking for in this case is

  • 1
    Im connected, and I can do nslookup but when I do ping it says DNS request timed out, server unknown ! Nov 2, 2018 at 12:29
  • Wait a sec. This is the correct answer.
    – kennyut
    May 27, 2021 at 21:21
  • This is the only correct answer here, as of 2022. May 9, 2022 at 18:37
  • yeah, this is the correct answer
    – user27494
    Aug 17, 2023 at 11: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.

  • 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 2, 2016 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. Feb 2, 2016 at 13:11
  • Alas, this is an answer to a different question. Dec 15, 2022 at 9:44

Go to "Map network drive" in "Computer" and select the "Drive" from scroll down menu. It will show IP of the Drive automatically.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .