Windows 7 Computer - Password Prompt when accessing by ip address not by hostname

Posted on 2011-04-19
Last Modified: 2012-05-11
We are having slow network issues connecting to a windows 2003 file server and I think this is part of the problem. On my windows 7 computer when I access the computer by hostname \\server it works fine I can see the shares. But when I access by ip \\ I get a username and password prompt and it says unknown user or bad password. The server is a standalone windows 2003 server.

Even stranger when my computer is not configured with a static ip address and gets an address from dhcp I then can not see the server by name \\server or ip \\ when I access by name I get  "Windows cannot access \\server"

When my pc has static ip address is (this works)

dns (router)

When my pc gets dhcp (internet works - access to 2003 standalone server does not)

   IPv4 Address. . . . . . . . . . . :
   Subnet Mask . . . . . . . . . . . :
   Default Gateway . . . . . . . . . :
   DHCP Server . . . . . . . . . . . :
DNS is
Question by:FASTECHS
    LVL 3

    Assisted Solution

    what happens if at the password prompt you enter domain\username and your password?
    LVL 31

    Assisted Solution

    It appears that you are not using a Domain setup.  Because of this, you will need to make sure that your DNS server, in this case is aware of \\server's name and IP address.  If you cannot modify DNS on that device, you can create an entry for that server in your hosts file.  

    When accessing by \\IPADDRESS, I would suggest using ".\username".  The ".\" tells the Windows server to look at itself for the username.

    LVL 17

    Assisted Solution

    by:Tony Massa
    Are you using Symantec w/ Network threat protection?  I have seen a similar issue with that enabled on a server.
    LVL 3

    Assisted Solution

    tmassa99 has a point, make sure you disable the firewalls and anything that might be blocking the traffic for the time of testing just to make sure the traffic is not blocked.
    LVL 17

    Accepted Solution

    Look at the subnet masks on your two IP configurations.  Why is one a class B and one a class C?

    Author Closing Comment

    I ended up changing the range and that fixed, the two ip ranges I think was messing it up

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    So many times I have seen the words written in a question "if only I could show you" or " I know how hard it is for you since you can't see it" in any zone. That has inspired me to write about this tool in windows 7 called "Problem Steps Recorder…
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
    The viewer will learn how to download and install Comodo Backup on Windows 7. Comodo Backup is another solution for backing up your computer. It is free for local backup and online backup has differing amounts depending on storage required. In my op…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now