Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Safari 5.1 suddenly cannot connect to server when accessing Google?

I have always had my homepage set to www.google.co.uk but all of a sudden when I launch Safari 5.1 it's throwing up there error message 'Safari can't connect to the server', any ideas?

iMac 24" intel, Mac OS X (10.6.4)

Posted on Aug 7, 2011 3:27 AM

Reply
68 replies

Nov 9, 2011 8:58 AM in response to macboydesign

Hi gang.


Okay - I've gone through this thread and it's hurting my head!!


Basically, I have the same problem: constant issues connecting to any server. Intermittent and furiously frustrating! Been so for a few months but getting worse. Convinced I have a trojan.


Went to the F-Secure link suggested in this thread and found this:


------------------------------


Disinfection



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.


-----------------------------------------


I can't seem to get any of these numbers to come up. It draws a blank. Plus I'm afraid of screwing things up since I don't know how to use Terminal.


The advice on this thread became a bit convoluted to me so would one of you kindly summarize, in one reply, what I should do? I'm running ClamXav, as I just downloaded it - will that root out the trojan?


thanks so much!

Belly.

Nov 9, 2011 12:55 PM in response to Belly Buckle

Belly Buckle wrote:


Basically, I have the same problem: constant issues connecting to any server. Intermittent and furiously frustrating! Been so for a few months but getting worse. Convinced I have a trojan.

Since you are having problems with any server, it's not at all the same problem. This thread is about a Trojan that redirects connections to Google only. Please start a new thread and describe your problem in greater detail.

Jan 9, 2012 8:33 AM in response to macboydesign

I have the same problem, tried to do what u said and terminal answers this:

Last login: Mon Jan 9 17:17:57 on ttys000

Ginnys-MacBook:~ ginny$ cat /etc/hosts

##

# 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

Ginnys-MacBook:~ ginny$ $cd /private/etc

-bash: /private/etc: is a directory

Ginnys-MacBook:~ ginny$ $sudo nano hosts



















GNU nano 2.0.6 File: hosts









































[ New File ]

^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos

^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell

HELPPPPPP

Jan 14, 2012 2:11 PM in response to piumolina

piumolina wrote:


I have the same problem, tried to do what u said and terminal answers this:

Last login: Mon Jan 9 17:17:57 on ttys000

Ginnys-MacBook:~ ginny$ cat /etc/hosts

##

# 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

This is a normal host file, so you must be having a different problem. If you are still having it, start a new thread.

Feb 19, 2014 1:38 AM in response to macboydesign

Guys... i'm having the same issue while trying to access any webpage.... the 'cannot find server' msg is not appearing constantly but randomly... i'm having the same issue with my Macbook Pro and Iphone.... can anyone help me... when i'm trying to ping my router from my IMac the time is under 1 ms although when i do it from my MacBook Pro here is what i get:


Ping has started…


Ping has started…


PING 192.168.1.254 (192.168.1.254): 56 data bytes

64 bytes from 192.168.1.254: icmp_seq=0 ttl=64 time=115.139 ms

64 bytes from 192.168.1.254: icmp_seq=1 ttl=64 time=40.419 ms

64 bytes from 192.168.1.254: icmp_seq=2 ttl=64 time=154.311 ms

64 bytes from 192.168.1.254: icmp_seq=3 ttl=64 time=43.690 ms

64 bytes from 192.168.1.254: icmp_seq=4 ttl=64 time=109.665 ms

64 bytes from 192.168.1.254: icmp_seq=5 ttl=64 time=30.080 ms

64 bytes from 192.168.1.254: icmp_seq=6 ttl=64 time=234.789 ms

64 bytes from 192.168.1.254: icmp_seq=7 ttl=64 time=180.234 ms

64 bytes from 192.168.1.254: icmp_seq=8 ttl=64 time=100.574 ms

64 bytes from 192.168.1.254: icmp_seq=9 ttl=64 time=20.954 ms


--- 192.168.1.254 ping statistics ---

10 packets transmitted, 10 packets received, 0.0% packet loss

round-trip min/avg/max/stddev = 20.954/102.986/234.789/67.562 ms

Safari 5.1 suddenly cannot connect to server when accessing Google?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.