Quote Originally Posted by System_Error
String s = ip_address;

StringTokenizer st = new StringTokenizer(s,'.');

//lloop and create a new string
You only get IP addresses as Array of bytes so I think my way is better