How to increment IP in C

en_7123's Avatar, Join Date: Feb 2010
Ambitious contributor
Is there any way of incrementing IP addresses like lets say the user enters and he wants the next 20 IP so the program should display

and so on until the next 20 IP ??

Last edited by en_7123; 28Mar2010 at 10:35..
xpi0t0s's Avatar, Join Date: Aug 2004
Not directly; you would need to parse the IP address entered (as a string, normally), extract the numbers, then generate the next 20 addresses from that.