Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm not able to get named pipes working within a single VM or across 2 VMs within Azure. Availability set is not an option.

So, if the VM name is, the named pipe is failing with username or password is incorrect. If we use testVM instead of FQDN, the named pipe is working fine.

There is no virtual network, we have the firewall correctly setup(even turned it off).

Adding a lmhosts file with the internal ipaddress mapped to did not solve this. Accessing \ asks for authentication and fails. But \testVM works. How do I setup this to make it work. Once this works, I want to expand this to multiple VMs.

share|improve this question

Named pipes only work if on the same physical machine. (They read/write to a block of ram)

On Azure you have no guarantee that two VMs will be on the same physical machine* (and I doubt that they would be allowed to share ram if they were).

So you will need to use some IP based web service (tcp, http, AMPQ)

If you are wanting to share files, it may be better to write to Azure blob storage and have your 2nd VM read from that. Web services are not normally very good at big chunks of data (>2MB typically)

*I would guess that they would not put them on the same physical machine, as that would be a single point of failure and a larger instance would be a better choice in that case.


If you are using the WCF NamedPipes binding (NetNamedPipesBinding) you can only use that on a single machine.

You can use windows named pipes across machine boundaries, as it fall back to tcp. (If you are using WCF then you should choose a tcp based binding when going across machine boundaries) Further details here.

share|improve this answer
I seem to recall it being possible to access named pipes using RPC, but I forget how this is configured. – Falcon Momot Nov 4 '13 at 4:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.