Network shares are accessed using their UNC paths (begin with \\
). For frequently accessed network shares, the UNC path can be mapped to a drive letter in Windows. You may be wondering how to find out the IP address of a mapped network drive — i.e., the IP of the network computer that hosts the shared folder. This post tells you how to find it.
Find the IP address of a Mapped Network drive in Windows
Let’s say you mapped a drive letter for \\media-pc\shared
and assigned the Z:
drive letter to it. The network computer name is usually displayed near the mapped drive letter when you view it in File Explorer.
To get the IP address of the computer (mapped drive target PC), open a Command Prompt window and type:
ping <computername> -4
Example:
ping media-pc -4
This shows the IPv4 address for the computer. If the -4
switch is not used, you’ll see the IPv6 address instead.
Using Command Prompt, to find the computer name that hosts the shared folder, run the net use
command.
Once you find the computer name, ping it.
Ping returns the IPv4 address of the computer named media-pc
.
One small request: If you liked this post, please share this?
One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
Thanks !
> The network computer name is usually displayed near the mapped drive letter when you view it in File Explorer.
It wasn’t for me. The rest of the guide doesn’t help if this isn’t true.
Use net use to acquire the name of the computer/server, then you can use ping to find the IP