I faced similar kind of problem earlier. Here is my suggestions
1- Don't just wait for page to load write a logic for it.Try to make several attempts after a given interval. (refer below mention code. language is perl)
my $wait =some_value;
my $url ="something";
print "$i attempt became unsuccessful.";
print "Got the url in $i attempt";
print "All attempts failed.";
2- Some times its not a selenium problem. Since selenium starts a news instance of firefox , it check for the certificate which is going to be loaded. If you have demo certificate try to add it to firefiox manually.
3- Check your firewall settings. Some routers block automated queries. e.g. If you are using belkin router they have an explicit firewall build in the router. Disable it.