MSN Messenger with Adium Under Leopard

Since upgrading to Leopard, I have had all sorts of interesting issues with messenger clients under Adium.  My problem was specifically with my Windows Live Messenger account.  The odd thing was, other Leopard friends are not having the same issues.  I also do not have this issue when connecting from my work network.  

I am not as alone as I thought in this problem.  Extensive Google searching revealed two solutions that others have tried and tested.  They solved my problem.

The problem stems from the resolver cache in Leopard not releasing and renewing the DNS cache for the required connections. This is a bug in the Leopard subsystem that should be patched by Apple at a later date. But there are two workarounds that seem to fix the problem.

The first solution gets to the heart of the matter and avoids DNS altogether.

1. Open a Terminal Window (Finder | Applications | Utilities | Terminal).

2. Enter the following command.

    sudo su

3. You will be prompted to enter your password. Use the password that you use to log into your Mac.

4. Copy and paste the following text into your Terminal window.

    cp /etc/hosts /etc/hosts.bak

    echo 207.46.96.153 messenger.hotmail.com >> /etc/hosts

    echo 65.54.179.216 nexus.passport.com >> /etc/hosts

    echo 65.54.179.203 login.live.com >> /etc/hosts

5. Exit the Terminal Application. You should now be able to connect successfully.

 

An alternate solution would be to change the DNS that your machine uses. These steps should still be followed in case Microsoft should ever change the IP addresses that they use for the Messenger service. OpenDNS would be the DNS of choice to speed up not only Adium, but other applications on your computer.

1. Go to System Preferences.

2. Click on Network.

3. Click on Advanced.

4. Click on the DNS tab.

5. Click the + sign in the lower left of the window and add the following two DNS servers.

    208.67.222.222

    208.67.220.220

6. Click OK and close system preferences.

 

Once these process are complete, you can restore your /etc/hosts file to the original and everything should still work. The cache will have already been updated on your computer and future requests will go through the reliable DNS services of OpenDNS.

1. Open a Terminal Window (Finder | Applications | Utilities | Terminal).

2. Enter the following command.

    sudo su

3. You will be prompted to enter your password. Use the password that you use to log into your Mac.

4. Copy and paste the following text into your Terminal window. cp /etc/hosts /etc/hosts.ba2 rm /etc/hosts cp /etc/hosts.bak /etc/hosts

5. Exit the Terminal Window.