What have you done so far? You may find
StringTokenizer to be helpful in parsing out each number that is separated by a period. Also,
Integer has methods for converting a
String to an int (assuming that the IP address is input as a String).
HTH
Layne