How validate server name/address?

How validate the server name/address in LS? I must validate the server name after the user input server name. Any idea?

Subject: How validate server name/address?

You could search the connections view of the current server’s address book.