Thanks for your input Khaled, that makes more sense now.
Perhaps you can gather the server ip (if required) when $serverip is called rather than at connect time, that way the user has a choice.
That wouldn't be too difficult to impliment right?
Thanks.