Make sure the you have configured the network settings properly.
Take a look at this link :
How To Configure Net Settings
You can also check this one