Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 testVM.cloudapp.net, 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 testVM.cloudapp.net did not solve this. Accessing \testVM.cloudapp.net 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
add comment

1 Answer

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.


Update

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
add comment

Your Answer

 
discard

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.