The original poster did not mention this exception, and given you don't have the ip of the server you should not assume this is related to the problem at hand.

taghack, please wrap your code in...