When I set up Outlook Anywhere on Exchange 2007 and Windows 2008 I used the official MS tool (which I have to admit is actually pretty good) www.testexchangeconnectivity.com . I kept getting this error:
Attempting to ping RPC Endpoint 6004 (NSPI Proxy Server)
RPC_S_SERVER_UNAVAILABLE error (0×6ba) was thrown by the RPC Runtime
After 2 days of endless head-scratching I could isolate the problem. This is what I found out:
- This can only happen on a system where all the Exchange Servers are on the same server, Client Access, Hub transport and Mailbox server.
- It happens because Windows uses by default IPv6. You can disable it for your ethernet interfaces but Windows does not give you any control over the loopback interface.When all the Exchange servers are on the same machine, windows uses the loopback interface to intreact with the Client Access server. Thus it uses IPv6 which for some reason unknown to humanity, does not work.
Solution
The solution is suprisingly simple. Just open your hosts file and comment out both localhost sections (both the IPv4 one and the IPv6, ::1) . Now write the servers (local) IP address and (local) hostname and FQDN like this.
Note: It was pointed out to me in the comments that you don’t have to comment out the localhost lines. I wrote this a few months back and I don’t remember why I commented it out. The system is in a production environment and I don’t want to mess with it now.
#127.0.0.1 localhost #::1 localhost 10.1.1.2 mailserver 10.1.1.2 mailserver.domain.local
Hope this saves somebody a headache.
Comments (11)
started out installing Exchange patch 8 for SP1 and it fixed the IPv6 problem for port 6004 but i was still getting an error when running the http://www.testexchangeconnectivity.com.
Altered the hosts file as you suggested and its working perfectly!
Thanks!
Great find! Thanks you
This had me stumped. Thanks!
This hosts file modification resolved my issue. All autodiscover tests now pass correctly.
Thanks… was banging my head on the desk for 5 hours before finding this, fixed it for me!
Thank you for posting this, it was quite helpful
Great info!
But you dont need to comment out the localhost-rows.
Just add one row with the server netbios and fqdn, example:
—–
10.1.1.2 mailserver mailserver.domain.local
—–
Thank you bro…i was struggling with this issue since last 3 days. God Bless you.
You deserve a gold medal!!! You saved me a lot of grief…meaning a call to Microsoft…where some dude was going to take me for a troubleshooting roller coaster ride…
Much love keep up the great work!
Dude I wish I found you 3 weeks ago! Thank you so much for this post. I wish I could buy you a case of your favorite brew.
You are free to muy me a case of it