We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


Spoofing a Netbios name to a windows client....

Medium Priority
Last Modified: 2012-05-11
I am in the midst of a data center move.  I have been asked by my customer to put together a proof of concept for an application - which uses UNC names to denote destinations for writing its files.

In effect, there is a client PC (lets say its a Windows 2003 server) who, through its application, writes files to \\destination\share

Now, I want to test this proof of concept without affecting the production destination.  So, I want to "spoof" the destination to a 3rd location thats nearby, lets say \\newdest\share.  However, I want to use the original server name {destination}.

I have over-written the HOSTS file on the client, and when I ping "destination" I see the IP address for "newdest".  Wonderful.

The issue comes when I try to connect to \\destination\share in Windows explorer - or if I try a "net use \\destination\ipc$" in the client command line.

In windows explorer, I get a message stating

"\\{destination\share} is not accessible.  You might not have permission to use this network resource.  Contact the administrator of this server to find out if you have access permissions.

You were not connected because a duplicate name exists on the network.  Go to System in Control Panel to change the computer name and try again".

Undaunted, I fire up my trusty mac.  I quickly add a hosts entry for "destination" - and when I use the Mac finder, I can instantly connect to "smb:\\destination\share" and I see the "newdest\share" files !  Wonderful.

So, I think it has something to do with WINS or Netbios.  So, back on my client PC, I change the IP address advanced configuration, remove all WINS addresses, disable "LMHOSTS lookup" and "Disable NetBIOS over TCP/IP" and reboot (hey, why not).  I still get the same issue.

So, I'm trying to map to "\\destination\share" but I really want it to go to "\\newdest\share".

What suggestions does the group have on this conundrum ?
Watch Question

Unlock this solution with a free trial preview.
(No credit card required)
Get Preview


We tried this earlier.  We added that exact line to LMHOSTS, ensured that the "Use LMHOSTS file" was checked in WINS, flushed DNS and also NBSTAT-R, and it didn't do nothing....

Now - heres the kicker - NEWSYSTEM is on the same Domain (AD) as the client, but OLDSYSTEM is a on a trusted domain.

HOWEVER, when I also tried doing this with "FAKESYSTEM" ( a system name that doesn't exist at all on the network) - I'm getting the same error (duplicate name on the network) - which is WIERD ?!
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview


Closing manually.  Sorry it took a while.


We decided to not spoof the IP - so it wasn't possible to accurately test the solutions offered.  I am closing this question and awarding points with the higher points to Scuthber since his was information we didn't know about.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.