How can I find the IP address of a mapped Network drive in Windows 10?
Solution 1:
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.
Solution 2:
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
.