In this thread they go over validating an ip address,
http://vbcity.com/forums/t/64595.aspx[
^]
No sure what you will need from there, when the user press your button call the function you create to validate and have that function return true or false and display the message you want the user to see.