Results 1 to 8 of 8

Thread: [RESOLVED] UNC Path not showing Name of Share only get IP address

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2011
    Posts
    498

    Resolved [RESOLVED] UNC Path not showing Name of Share only get IP address

    I recently rebuilt a new computer and nothing on my Nas has changed.
    However, when i want to get the share Name for a mapped drive, i only get the IP address now.
    Is it something on my PC i need to change.

    On Windows 10 Pro 21H1

    Before i got 'DriveShareName' now i get '123.123.123.123' < ip only an example

    Pls see code below that i use

    Code:
    http://vbnet.mvps.org/index.html?code/network/uncfrommappeddrive.htm
    Last edited by k_zeon; Nov 17th, 2021 at 04:22 PM.

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,393

    Re: UNC Path not showing Name of Share only get IP address

    Does the new computer use the same version of Windows?

    Did you install any software from the NAS manufacture on the old computer? On the new computer?

    Make/Model of NAS?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2011
    Posts
    498

    Re: UNC Path not showing Name of Share only get IP address

    Quote Originally Posted by jdc2000 View Post
    Does the new computer use the same version of Windows?

    Did you install any software from the NAS manufacture on the old computer? On the new computer?

    Make/Model of NAS?
    same windows version, same software from Nas Manufacturer. Qnap

    Every code i have tried just gives me the ip address. I used to get a sharename

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: UNC Path not showing Name of Share only get IP address

    I just tested a WNetGetConnection() call and it returns the share path just fine, not its IP address.

    It probably has something to do with how you mapped the drive.

    What does "NET USE" show when typed into a Cmd.exe window?

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2011
    Posts
    498

    Re: UNC Path not showing Name of Share only get IP address

    they all show ip address's

    I will disconnect and reconnect and see if i have missed an option

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2011
    Posts
    498

    Re: UNC Path not showing Name of Share only get IP address

    Quote Originally Posted by dilettante View Post
    I just tested a WNetGetConnection() call and it returns the share path just fine, not its IP address.

    It probably has something to do with how you mapped the drive.

    What does "NET USE" show when typed into a Cmd.exe window?
    Tks dilettante. it was the way i mapped them. remapped and all showing the sharenames again.

    p.s. how do i mark this as resolved. i dont see any options. tks

  7. #7
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: UNC Path not showing Name of Share only get IP address

    At the top of the page [just above the first post] there is a thread tools drop down where there is the option to mark as resolved.

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2011
    Posts
    498

    Re: UNC Path not showing Name of Share only get IP address

    Quote Originally Posted by DataMiser View Post
    At the top of the page [just above the first post] there is a thread tools drop down where there is the option to mark as resolved.
    tks DataMiser

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width