by MrSnowflake » Fri Nov 14, 2008 1:07 pm
Something like that. Or you could just use a EditText en when the user finishes entering, or goes to the next screen, you can try to make a socket with that address (Socket testSocket = new Socket(editText.getText().toString()). If an illegalformatexception is thrown, you know the address/ip format is invalid. But then you have a hostname/ip address input box, but I think that's easiers, as IPV6 IP addresses are a lot more difficult to correctly parse/check.