VPN Connection works but outlook connecting to exchange server occasionaly works

Ok I have a Juniper Network Firewall 25 and I have set up a vpn to allow traveling users to connect to our network and so they can use their outlook on the road (we had a new mandate that made me remove OWA)

The vpn works great, everyone can connect, if they have offline files they synch and they can ping the internl servers by both UDN name and ip address. Here is the problem, I'm getting reports back from the field that their outlook sometime won't ever connect to exchange box.  If they are in a hotel that they can connect using outlook, they always can. If they are in a hotel were the first try they can't they never can. We also have a few users that have Verizon wireless broadband card so they can connect where ever. I'll use this one as an example since I can try it out in the office.

Using the boadband card I connect and then connect to the vpn. I can ping, synch and remote desktop to our internal servers including the exchange server.

When I open exchange, it just sits at "trying to connect". If I run from the command line: outlook.exe /rpcdiag it shows it first trying to connect to a DC server and then the exchange server. Nothing is dispalyed in the Interface or conn columns. This makes me believe exchange doesn't know about the broadband interface.

I could really use some help on this one ASAP. I need to get this connection more reliable.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob WilliamsCommented:
When the users can't connect, can they connect at that time to other resources on the VPN?
Reason I ask is VPN's will often not work in some public locations such as hotels due to their routers not supporting or are not configured for VPN pass through, also some intentionally block all but ports 80 and 443. The other thing I have run into is either end of a tunnel needs to be on a different subnet. If your office is on a common subnet such as,,,  or, it will often conflict with the remote site.
One easy solution may be to add a LMHOSTS file to their laptops with three entries:   PDCNAME   #PRE #DOM:DOMAIN-NAME   "DOMAIN-NAME    \0x1b"   #PRE EXCHANGE1 #PRE

How to Write an LMHOSTS File for Domain Validation and Other Name Resolution Issues

Never fails me on while I'm on the road. Never been in a situation where I could not access Exchange server over the VPN.
Lrmoore's suggestion would be the first one to try if I were you. I had a lot of guys having the save problem. An entry either in LMHosts file or Hosts file will resolve your problem.

Virus Depot: Cyber Crime Becomes Big Business

The rising threat of malware-as-a-service is not one to be overlooked. Malware-as-a-service is growing and easily purchased from a full-service cyber-criminal store in a “Virus Depot” fashion. View our webinar recording to learn how to best defend against these attacks!

chemdryAuthor Commented:
Yes the user is able to connect to other resources on the VPN, just Outlook won't connect. I tried the LMHOST  and it didn't work either.

We have OWA still up internal (must be vpn in to use it) for testing and backup for outlook not working. It seems the both Internet Explorer and Outlook aren't checking the vpn tunnel although when you go to a command prompt and ping it does....

When connected to the vpn (remember everything works with some connections and other connections ie a different hotel it doesn't and for this case I'm using the Verizon Wireless Broadband Air Card which is a connection that doesn't) and I open explorer and type in which is our Exchange server, it comes back with this service isn't available on and shows a public IP address which I think is verizons and outlook doesn't show a interface it is trying to connect on.

On the LMHOST, I replace DOMAIN_NAME with ours and EXCHANGE1 with our exchange server right? That's what I did but want to make sure.
Regarding the LMHOSTS, yes, replace "PDCNAME" with the name of the domain controller, "EXCHANGE1" replace with the name of the exchange server, the "domain-name" with your domain.
Rules of LMOSTS are explained in the reference article.
Spaces are tabs, not spaces, i.e.  <tab>  DCNAME  <tab>  #PRE <tab>  #DOM:DOMAIN-NAME  <tab>  "DOMAIN-NAME   \0x1b"  <tab>  #PRE
                           ^ there must be eactly 20 characters between " " and the last 5 characters must be "\0x1b"
There must be a blank line with carriage return at the end
File must not have .txt or any other file extension
Use "nbtstat -R" after saving the file (Capital "R")
Use "nbtstat -c"  to check that it worked (lowercase "c")

What kind of VPN are you using? Microsoft PPTP or other?
chemdryAuthor Commented:
I'm using the Juniper Netscreen 25 firewall with the Netscreen-Remote vpn client utility.

I've tried the LMHOSTS and it doesn't appear to be working. Since I'm not connected through microsoft vpn which assigns your computer an internal ip address it can't find the records. The Netscreen-remote assigns a 60.60.60.x ip address and nats the transversal back and forth.

Has anyone seen a way to force the network connection to check a particular connection first and then any other connections second?? I'm thinking that outlook and IE are looking at the broadband connection, not finding the servers, and then doesn't check the vpn connection. But ping seems to do so as I can ping everything.

  Go to this directory C:\WINDOWS\system32\drivers\etc and there you will have a file named hosts with no extension.

In that just add your PDC name and Exchange Server name. Then open outlook, see what is happening.

How to add:

x.x.x.x   <Name of the PDC>

y.y.y.y   <Name of the Exchange>

Note that x.x.x.x and y.y.y.y has to be the internal ip addresses in your organization.

Let us know if this works.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
This FULLY fixed a similure problem I was having with VPN... AWESOME! Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.