windows 7 ping cannot find host but ip address works

Page 1 of 2 12 LastLast

  1. Posts : 90
    Windows 7 x64, ultimate/pro/home, SLES x86 & ia64
       #1

    windows 7 ping cannot find host but ip address works


    this worked for me previously but i started from scratch and now it doesn't.
    I have a single pc running windows 7 with a lan cable from it to a synology diskstation NAS.
    my win7 pc is 192.168.0.10 and my nas box server name is 'data' with ip 192.168.0.20.

    the other day within windows i was able to do \\data in an address bar and saw my file shares. I redid the NAS box today to make sure i understand how everything works, now doing \\data does not work from the win7 pc.

    in a command prompt i type 'ping data' and it says could not find host.
    but if i do ping 192.168.0.20 it pings successfully, and if i do \\192.168.0.20 in an address bar it shows my file shares and everything works fine

    on the windows 7 pc, what causes this and how do i fix?
    thanks.
      My Computer


  2. Posts : 1,049
    Windows 7 Pro 32
       #2

    Check Network discovery in Control Panel - Network and sharing center - Advanced sharing settings
      My Computer


  3. Posts : 2,177
    Windows 8.1 Pro x64
       #3

    When you say you "redid the NAS box" did you basically flatten it and start over again?

    When you set it back up again did you definitely call it Data?
    If you go to the Synology Control Panel and select Network, is the Server Name "Data"?

    windows 7 ping cannot find host but ip address works-2014-08-27-21_50_49-synology-diskstation-jdsvr01.png

    The other thing to try is a flushdns
    Click Start >> Type CMD >> Press Enter (or select CMD.exe form the search result)
    In the black command window type:
    Code:
    ipconfig /flushdns
    Now try pinging the name again

    If that does't work try the following command in the command window you opened above
    Code:
    ping -a 192.168.0.20
    What name (if any) does it reply with?

    Example below shows mine is called JDSVR01:
    windows 7 ping cannot find host but ip address works-2014-08-27-21_55_03-command-prompt.png

    Regards,
    Jamie
      My Computer


  4. Posts : 90
    Windows 7 x64, ultimate/pro/home, SLES x86 & ia64
    Thread Starter
       #4

    just checked and network discovery is off.
    i try to turn it on, click save and no errors. I go back in to advanced sharing and it's off.
    what causes this?

    on the win7 pc, the firewall is all off.
    i did flatten the nas box, took all original drives out and put in one new spare drive so someone could test drive it. i had server name specified as "rondata" originally, this time around i called it "data". I had the ip set as 192.168.0.50 but i did not have anything set for default gateway. i'm using one win7 pc, a cheap 8 port d-link switch, and the one nas box.
      My Computer


  5. Posts : 90
    Windows 7 x64, ultimate/pro/home, SLES x86 & ia64
    Thread Starter
       #5

    ok fixed network discovery, the upnp device host service was disabled so i enabled that along with restoring default settings on firewall. now network discovery is on for both public and private. I went back in and turned all firewalls off. rebooted. still no luck.
      My Computer


  6. Posts : 2,177
    Windows 8.1 Pro x64
       #6

    Did you try the 2 commands i posted above?
      My Computer


  7. Posts : 1,049
    Windows 7 Pro 32
       #7

    Only turn on discovery for private. There are separate settings for public.
    And you'd want the windows firewall to be on unless you have another firewall installed.
      My Computer


  8. Posts : 90
    Windows 7 x64, ultimate/pro/home, SLES x86 & ia64
    Thread Starter
       #8

    and ping -a 192.168.0.50 ==> pinging DATA [192.168.0.50] with 32 bytes.... successfull.

    try ping DATA ==> could not find host.


    my active network is public, and it says Unidentified network. I tried ping data.home and ping data.public, no luck.
      My Computer


  9. Posts : 2,177
    Windows 8.1 Pro x64
       #9

    So it does resolve the name when you do a ping -a...

    Did you try the flushdns command before doing the ping?
    If not give that a go.

    Do you have the default gateway set correctly?
    windows 7 ping cannot find host but ip address works-2014-08-28-14_56_03-jdsvr03-899-983-957-teamviewer.png

    Regards,
    Jamie
      My Computer


  10. Posts : 90
    Windows 7 x64, ultimate/pro/home, SLES x86 & ia64
    Thread Starter
       #10

    these 2 things fixed it.

    Windows 7 can't access UNC path - Spiceworks
    UNC Drive Mapping Failures: Network name cannot be found - Rick Strahl's Web Log


    first i deleted the network adapter and all hidden devices under it. most hidden devices could not be uninstalled. I rebooted, the network adapter reinstalled automatically. my ping data still did not work. then i modified the registry entry below, and then noticed my network adapter was set to dhcp so i then set my pc back to static 192.168.0.40.
    now i can do ping data and it resolves the ip and works. so not sure if uninstalling network adapter and reinstalling, and setting my ip address back to static, would have fixed it. But my providerorder had some other thing first.

    HKLM\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order
    ProviderOrder =
    LanmanWorkstation,RDPNP,webclient
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:27.
Find Us