Error accessing shared folders by server name (Not by IP)

When I access shared folders by \\servername it is showing the below error.
But if access it by ip it is working fine. and that even not all the pcs only 4/5 pcs.

'\severname is not accessible you might not have permission to use this network the administrator....
Logon failure : the target account name is incorrect'

Your help is appreciated.

LVL 29
MAS (MVE)Technical Department HeadAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

MAS (MVE)Connect With a Mentor Technical Department HeadAuthor Commented:
This is the only way I found as users started making problems.

Are you sure servername is resolvnig the right IP?
You can try also mapping a folder to some drive
In command prompt type
net use X: \\servername\sharedfolder /USER:username_which_has_access password

Open in new window

MAS (MVE)Technical Department HeadAuthor Commented:
I need that to be accessed by server name as it is an application server.
application is running  through the folders in that server.

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Might be a problem with the computer account. Try disjoining the computer from the domain, delete computer account in Active directory, and then join domain again.

Also, try flushing dns ("ipconfig /flushdns" in command prompt) on PC's which are having trouble accessing \\servername.
MAS (MVE)Technical Department HeadAuthor Commented:
I am not able to disconnect/rejoin it from domain it is showing the same error.
'Logon failure : the target account name is incorrect'

I tried flushdns and register dns. no improvement.

Kent is on this one. You can also try an entry in your hosts file.
MAS (MVE)Technical Department HeadAuthor Commented:
I am sorry I formatted the server and reinstalled a new dc as I don't have time to wait.
Thanks for all your kind support.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.