Improved IP check in connect dialog