1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Can Ping IP but not the Host name

Discussion in 'Networking' started by suniltyagi, Dec 21, 2009.

Thread Status:
Not open for further replies.
Advertisement
  1. suniltyagi

    suniltyagi Thread Starter

    Joined:
    Dec 21, 2009
    Messages:
    14
    Hey
    I upgraded my sysem to Windows 7 OS. I couldn't load Matlab due to host name resolution problem.
    The problem is that I can Ping my IP address but I cannot ping the hostname.
    Can any one please help me on this

    Sunil tyagi
     
  2. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,409
    Hold the Windows key and press R, then type CMD then press Enter to open a command prompt:

    In the command prompt window that opens, type type the following commands, one at a time, followed by the Enter key:

    Note that there is a space before the -n or the /ALL, but there is NOT a space after the - or / in the following commands.

    NBTSTAT -n

    IPCONFIG /ALL


    Right click in the command window and choose Select All, then hit Enter to copy the contents to the clipboard.
    Paste the results in a message here.

    If you are on a machine with no network connection, use a floppy, USB disk, or a CD-RW disk to transfer a text file with the information to allow pasting it here.
     
  3. suniltyagi

    suniltyagi Thread Starter

    Joined:
    Dec 21, 2009
    Messages:
    14
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    Thanks for such a prompt reply.
    Idid as u suggested and here are the result

    C:\Users\SUNIL>NBTSTAT -n
    Local Area Connection:
    Node IpAddress: [192.168.1.5] Scope Id: []
    NetBIOS Local Name Table
    Name Type Status
    ---------------------------------------------
    SUNIL-PC <00> UNIQUE Registered
    WORKGROUP <00> GROUP Registered
    SUNIL-PC <20> UNIQUE Registered
    C:\Users\SUNIL>IPCONFIG /ALL
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : SUNIL-PC
    Primary Dns Suffix . . . . . . . :
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Realtek RTL8168B/8111B Family PCI-E Gigab
    it Ethernet NIC (NDIS 6.20)
    Physical Address. . . . . . . . . : 00-26-18-2C-0D-0D
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    Link-local IPv6 Address . . . . . : fe80::4a:a3ad:7556:b507%11(Preferred)
    IPv4 Address. . . . . . . . . . . : 192.168.1.5(Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.1
    DHCPv6 IAID . . . . . . . . . . . : 234890776
    DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-BA-3B-56-00-26-18-2C-0D-0D
    DNS Servers . . . . . . . . . . . : 59.179.243.70
    203.99.243.70
    NetBIOS over Tcpip. . . . . . . . : Enabled
    Tunnel adapter isatap.{57A64FC8-79ED-48E8-B4EF-BA081FFD4506}:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Microsoft ISATAP Adapter
    Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter Teredo Tunneling Pseudo-Interface:
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
    Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
     
  4. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,409
    Why do you have DHCP disabled?

    Let's enable that and see if that changes things.


    Configure DHCP for Windows Vista & Windows 7

    1. Click on the Start menu, and select Control Panel.
    2. Click on Network and Internet. (Skip this step if you do not see this Control Panel item.)
    3. Click on Network and Sharing Center.
    4. Click on Manage network connections.
    5. Right click on Connection you wish to change and choose Properties. If Windows say it needs your permission to continue, click Continue.
    6. Select Internet Protocol Version 4(TCP/IPv4) and click Properties.
    7. Select Obtain an IP address automatically.
    8. Select Obtain DNS server address automatically.
    9. Click OK to close the TCP/IP Properties window.
    10. Click OK to close the Local Area Connection Properties window.
    11. Click Close to close the Network Connections window.
    12. Click Close to close the Control Panel window.
    13. Restart your computer.
     
  5. suniltyagi

    suniltyagi Thread Starter

    Joined:
    Dec 21, 2009
    Messages:
    14
    I enabled the DHCP sever, but I stil can't ping the host name. Here is he result

    C:\Users\SUNIL>ping SUNIL-PC
    Ping request could not find host SUNIL-PC. Please check the name and try again.


    C:\Users\SUNIL>IPconfig /ALL
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : SUNIL-PC
    Primary Dns Suffix . . . . . . . :
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No

    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Realtek RTL8168B/8111B Family PCI-E Gigab
    it Ethernet NIC (NDIS 6.20)
    Physical Address. . . . . . . . . : 00-26-18-2C-0D-0D
    DHCP Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    Link-local IPv6 Address . . . . . : fe80::4a:a3ad:7556:b507%11(Preferred)
    IPv4 Address. . . . . . . . . . . : 192.168.1.3(Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Lease Obtained. . . . . . . . . . : 22 December 2009 11:16:46
    Lease Expires . . . . . . . . . . : 25 December 2009 11:16:46
    Default Gateway . . . . . . . . . : 192.168.1.1
    DHCP Server . . . . . . . . . . . : 192.168.1.1
    DHCPv6 IAID . . . . . . . . . . . : 234890776
    DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-BA-3B-56-00-26-18-2C-0D-0D

    DNS Servers . . . . . . . . . . . : 192.168.1.1
    NetBIOS over Tcpip. . . . . . . . : Enabled

    Tunnel adapter isatap.{57A64FC8-79ED-48E8-B4EF-BA081FFD4506}:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Microsoft ISATAP Adapter
    Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes

    Tunnel adapter Teredo Tunneling Pseudo-Interface:
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
    Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    IPv6 Address. . . . . . . . . . . : 2001:0:cf2e:3096:1841:563:3f57:fefc(Prefe
    rred)
    Link-local IPv6 Address . . . . . : fe80::1841:563:3f57:fefc%13(Preferred)
    Default Gateway . . . . . . . . . : ::
    NetBIOS over Tcpip. . . . . . . . : Disabled

    C:\Users\SUNIL>
     
  6. TerryNet

    TerryNet Terry Moderator

    Joined:
    Mar 23, 2005
    Messages:
    69,586
    Most likely culprit is a non-Windows firewall or security suite. Especially if you did an "upgrade" install w/o properly accounting for it.
     
  7. suniltyagi

    suniltyagi Thread Starter

    Joined:
    Dec 21, 2009
    Messages:
    14
    I am using Norton anti virus. I turned off the auto protect and tried to ping.
    I still cant ping hostname that is SUNIL-PC.
     
  8. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,409
  9. suniltyagi

    suniltyagi Thread Starter

    Joined:
    Dec 21, 2009
    Messages:
    14
    My PC is in standalone mode.
    I completely uninstalled Norton antivirus as suggested by you and tried to ping again the hostname it still doesn't work.
     
  10. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,409
    You're pinging your own name or the name of another workstation on the network?
     
  11. suniltyagi

    suniltyagi Thread Starter

    Joined:
    Dec 21, 2009
    Messages:
    14
    I am pinging my own name. Following is outcome at the command prompt :

    C:\Users\SUNIL>hostname
    SUNIL-PC
    C:\Users\SUNIL>ping SUNIL-PC
    Ping request could not find host SUNIL-PC. Please check the name and try again.
    C:\Users\SUNIL>
     
  12. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,409
  13. suniltyagi

    suniltyagi Thread Starter

    Joined:
    Dec 21, 2009
    Messages:
    14
    I tried to run Hijack this. I says system denied writing to host file.
    I run the software after the message but it did not produce any log file.
     
  14. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,409
    Are you running an account with administrative rights?
     
  15. suniltyagi

    suniltyagi Thread Starter

    Joined:
    Dec 21, 2009
    Messages:
    14
    Yes I have administrative rights. My OS is Windows7 and in Windows7 one has to open the note pad as administrator to make changes to host file.
    I guess I have to give administrator rights to the log file created by Hijack this.
    By the way I can ping localhost but not my host name. Here is the result:
    C:\Users\SUNIL>ping localhost
    Pinging SUNIL-PC [::1] with 32 bytes of data:
    Reply from ::1: time<1ms
    Reply from ::1: time<1ms
    Reply from ::1: time<1ms
    Reply from ::1: time<1ms

    Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

    C:\Users\SUNIL>hostname
    SUNIL-PC

    C:\Users\SUNIL>ping SUNIL-PC
    Ping request could not find host SUNIL-PC. Please check the name and try again.

    C:\Users\SUNIL>
     
  16. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/887273