Internet, Networking, and Wireless Discussion of networking, internet, and wireless including Apple's Airport products.

Web browsers cannot connect to server google/yahoo/youtube.com? help


Post Reply New Thread Subscribe

 
Thread Tools
macdrvr

 
Member Since: Sep 25, 2011
Posts: 6
macdrvr is on a distinguished road

macdrvr is offline
When trying to get to google.com/youtube.com/yahoo.com I keep receiving the message "Safari can't connect to server" I then tried the same operation in firefox and a similar message.

Other sites are able to be accessed without issue...

This has been happening for a few months now but I usually can fix this issue for a period of time by deleting my cache files. But this no longer has the same effect.

I also tried safari's help link of Try entering “/index.html” at the end of the address.This also has no effect..

also found this odd... I tried to access my mail through yahoo and was able to get to it by entering yahoo.com/mail ???

Any help would be appreciated.
QUOTE Thanks
TattooedMac

 
TattooedMac's Avatar
 
Member Since: May 19, 2009
Location: Western Astraya
Posts: 6,453
TattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant future
Mac Specs: 13"MBP 2.9Ghz Intel Core i7 10.8.3 ~ iPhone5 6.1.3 ~ iPad Mini 6.1.3 ~ ATV2 5.2.1

TattooedMac is online now
Try this for Safar as you might have a corrupt .plist and i don't use FF so can't be of help there
Quit safari
Open Finder then to Go in the menu bar. Now press Option and you will see yourLibrary appear in the drop down. Now click that and Finder will now show the hidden Library Folder. Goto Preferences and look for or type in the spotlight bar com.apple.safari.plist
Now drag that to your Desktop.
Relaunch Safari and a new .plist will be made within the Preferences folder and hopefully that has solved the problem.
If not Find the new Safari.plist drag it to the trash and replace it with the old one from the desktop.


Dont forget to use the Reputation System if someone has helped you out !!!
Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
QUOTE Thanks
macdrvr

 
Member Since: Sep 25, 2011
Posts: 6
macdrvr is on a distinguished road

macdrvr is offline
Hey thanks for answring ...but is there any other way to find that .plist folder? I tired pressing option and click the go button but no hidden library showed. So I then found figured out how to show hidden files with a terminal command, but i still was unable to find that folder?

:edit: Actually I found the file and removed it ...but no luck

Last edited by macdrvr; 09-25-2011 at 11:13 PM.
QUOTE Thanks
TattooedMac

 
TattooedMac's Avatar
 
Member Since: May 19, 2009
Location: Western Astraya
Posts: 6,453
TattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant future
Mac Specs: 13"MBP 2.9Ghz Intel Core i7 10.8.3 ~ iPhone5 6.1.3 ~ iPad Mini 6.1.3 ~ ATV2 5.2.1

TattooedMac is online now
Quote:
Originally Posted by macdrvr View Post
Hey thanks for answring ...but is there any other way to find that .plist folder? I tired pressing option and click the go button but no hidden library showed. So I then found figured out how to show hidden files with a terminal command, but i still was unable to find that folder?
And that be my fault presuming you where running Lion. My apologies for the mis-leading information . . . . .

Try Repairing Permissions in Disk Utility via Applications>Utilities

Click on yourHD in the left column and the click the First Aid tab.
Now at the bottom of the window click Repair Permissions. This can take a while if the System is a little messy. Once done restart and hopefully that has done something.

Cheers


Dont forget to use the Reputation System if someone has helped you out !!!
Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
QUOTE Thanks
macdrvr

 
Member Since: Sep 25, 2011
Posts: 6
macdrvr is on a distinguished road

macdrvr is offline
still no luck really sucks cause its the sites i use the most
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 5,822
Raz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud of
Mac Specs: 27" i7 iMac with 16GB RAM and 1TB HDD, iPhone 3G & 4, iPod Nano 16GB, iPod Shuffle, iPad 2 16GB WiFi

Raz0rEdge is offline
Open up a terminal and enter the following command and tell us what you get
Code:
ping -c5 google.com
traceroute google.com
Do the same 2 commands for the other URL's you are having issues with. Also do those commands with URLs that do work just for comparison..

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks
macdrvr

 
Member Since: Sep 25, 2011
Posts: 6
macdrvr is on a distinguished road

macdrvr is offline
Thank you for responding:
I ran

1.ping -c5 google.com

and completed with :
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 11.744/12.377/12.660/0.325 ms


Same for youtube.com, yahoo.com
Did not complete
2.traceroute google.com

traceroute: sendto: No route to host
-traceroute: wrote google.com 52 chars, ret=-1


Same message for all sites including the sites that work

Last edited by macdrvr; 09-29-2011 at 01:22 AM.
QUOTE Thanks
macdrvr

 
Member Since: Sep 25, 2011
Posts: 6
macdrvr is on a distinguished road

macdrvr is offline
After having issues with certain pages not connect to servers especially anything google.com or owned by them and others. I found users with similar problems and the cuplprite seems to be a Trojan called BASH/QHost.WB with a link to the founders here Threat Description: Trojan:BASH/QHost.WB. Now I need to remove this file but the directions given by the site (pasted below) aren't working.

I ran $cd /private/etc
and got operation complete

Then tried to run
$sudo vim hosts
and no result but after one time I was asked for my admin password which I stupidly gave then changed right after.
I do not get anything like :
91.224.160.26 google.com
91.224.160.26 google.ae
91.224.160.26 google.as

Manually correcting the hosts file

1. Open terminal and change directory to */private/etc/*

$cd /private/etc

2. Use any editor tool you prefer and edit the *hosts* file. Note: You need root privilege to do this.

$sudo vim hosts

You should see something similar to the following:

91.224.160.26 google.com
91.224.160.26 google.ae
91.224.160.26 google.as

[truncated for brevity]

3. Remove all the entries contain *91.224.160.26* from the hosts file.
QUOTE Thanks
dtravis7

 
dtravis7's Avatar
 
Member Since: Jan 04, 2005
Location: Modesto, Ca.
Posts: 25,806
dtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond repute
Mac Specs: iMac C2D Late 2007 20" with 10.8.3, Macbook Santa Rosa 4GB Ram OSX 10.8.3

dtravis7 is online now
I hope you are not putting in the $ first thing. Second you HAVE to give OSX your admin password to run Vim and other editors. You are giving the OS the Root Password. That is the way Unix OS's work and why they are more secure.

I just tried it here like this:

Open the Terminal in Utilities.
type in:

cd /private/etc

then type:

sudo vim hosts

It will ask your OSX Administrator Password. Give it that and the editor will open with the hosts file.


Here is what a proper hosts file looks like.........................

#
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
~
~
~
~
~
~
~
~
~
~
~
~
~
"hosts" 10L, 236C



I believe it's Command+s to save. It's Command+q to quit vim.
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 5,822
Raz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud of
Mac Specs: 27" i7 iMac with 16GB RAM and 1TB HDD, iPhone 3G & 4, iPod Nano 16GB, iPod Shuffle, iPad 2 16GB WiFi

Raz0rEdge is offline
Slight clarification on Dennis' post..you have to give OS X your password when you prefix a command with "sudo", indicating that you want to run the command as Root..

Please do the following
Code:
cat /private/etc/hosts
This will show you the contents of the hosts file, you indeed see the offending contents in there, you will want to delete them with
Code:
sudo vi /private/etc/hosts
Enter your password to allow this action. Once VI starts up, use the cursors to scroll to the first offending line, now hit 'd' key twice. The line will now be deleted. You can now repeat this command on other offending lines (scroll using the cursor if need be) by hitting the '.' (period) key on the keyboard or hid the 'd' key twice again.

Continue doing this until your hosts file is clean and looks more like what Dennis has put on his post.

Once you're done, you want to save the file and quit VI. To do so, you'll want to hit the ':' (colon) key, that is, hold down the SHIFT key and hit the semi-colon ';' key. Now enter the letters 'wq' and hit enter. This will [w]rite the file and [q]uit VI.

Now please test your access to the sites you were having issues with previously..

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks
macdrvr

 
Member Since: Sep 25, 2011
Posts: 6
macdrvr is on a distinguished road

macdrvr is offline
Once again thank you. Im glad i didn't give the trojan my password. But it looks like I am not infected with this torjan than because mine looks just like dtravis7 host file, with the only exception being the bottom. So im seems unfortunately im back to square one again with this issue.

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
~
~
~
~
~
~
~
~
~
~
~
~
~
"/private/etc/hosts" 10L, 236C

I just thought to try and use a proxy server to use these sites and it works. Idk if that would lead to a clue or not to my issue?

Last edited by macdrvr; 09-30-2011 at 11:44 AM.
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 5,822
Raz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud of
Mac Specs: 27" i7 iMac with 16GB RAM and 1TB HDD, iPhone 3G & 4, iPod Nano 16GB, iPod Shuffle, iPad 2 16GB WiFi

Raz0rEdge is offline
What proxy server? How long has this issue been happening and how are you connected to the Internet?

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks
dsflynn1

 
Member Since: Sep 30, 2011
Posts: 2
dsflynn1 is on a distinguished road

dsflynn1 is offline
I have been having the same issue for a week or so now. I have cycled the router and modem and I have used another laptop on the same IP and been able to access google, yahoo, and youtube. Interestingly enough I am able to access google if I go through a proxy site like hidemyass.com. My hosts file appears normal and I have no entries referring to google. The issue is the same on Firefox and Safari. I am connected through DSL. I really hope someone can help us out here.

Last edited by dsflynn1; 09-30-2011 at 10:24 PM. Reason: more info
QUOTE Thanks
dsflynn1

 
Member Since: Sep 30, 2011
Posts: 2
dsflynn1 is on a distinguished road

dsflynn1 is offline
I figured it out. Peer Guardian had apparently updated and messed things up a bit. I disabled the filters and now everything is back to normal.
QUOTE Thanks

Post Reply New Thread Subscribe


« Time Machine | macbook says unknown ip address »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Can't Connect To Server RebLev Internet, Networking, and Wireless 1 02-03-2011 08:04 PM
Connect to Server on wifi Network Connect cayqel OS X - Operating System 0 09-03-2009 07:25 PM
time machine error - never stops to prepare or stopping back-up alonewithmymac OS X - Apps and Games 3 12-26-2008 07:56 PM
Web server / port forward inconsistent results DavidH Internet, Networking, and Wireless 3 12-08-2008 05:42 AM
HELP I'm trying to clean out old web site files from server bluerose Web Design and Hosting 8 02-16-2005 09:42 PM

All times are GMT -4. The time now is 08:00 PM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?