07.04.2010, 00:17
Hi! I recommend you using sscanf or split() and split the IP by dots into an array. Then put it back together using the [0] and [1] of the array. I recently did the same thing in PHP. I might be able to show you an example if you'd need it.