Exchange 2007 Outlook anywhere RPC endpoint 6004 error


I was attempting to get outlook anywhere to work. My environment is Exchange 2007 SP3 with the latest rollup package (as of 2/27/13) running on W2K8R2. I am using a UCC certificate from godaddy with my external name “” and my Subject Alternative Names are;; etc…

This is a small environment so every exchange role is installed on the same server.
The error pops up when I run the RPC over HTTP test at

and get an error on the following test:

Attempting to ping RPC endpoint 6004 (NSPI Proxy Interface) on server.

I checked a few things on this:
1. I made sure that the “valid ports” registry key in HKLM/Software/Microsoft/RPC/RpcProxy had the following:


2.I added my internal server name to my DNS hosts (I’m not sure if this made a difference) I’m going to remove it and test at a later time.

3. Following someone’s advice (and what I really think solved the problem) was that I edited the hosts file on the exchange server and put in 2 entries ( is my internal ip address for my exchange server) MYMXINTERNALSRVNAME

This seemed to solve the problem with that 6004 error. I believe it has something to do with an IPv6/IPv4 incompatibility problems with Outlook Anywhere/rpcoverhttp.

More info at:

Outlook 2007 search problem fix

Leave a comment

I had a user who when using the quick search function in Outlook 2007 SP2 would search and it would only return results from before July 09?  We couldn’t figure it out. I tried re-running the indexing in control panel, with no luck.  Finally after searching I came accross a 3 year old post here that fixed it.

On your start menu, go to Microsoft Office folder, Go to Microsoft Office Tools, and open Microsoft Office Diagnostics and run the diagnostics.  It takes about 2 minutes and you can work while it’s running.  The diagnostics run and find no problems,  (at least on mine and another persons),  redirects you to the site if you want, but what it does is it rebuilds the folders or reindexes something. To be honest with you, I don’t care. It’s one of those stupid, annoying problems that you want to go away quickly and spend as little time as possible on.