Java - Incrementing through IP addresses in String format
Posted
by
Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2012-12-09T22:59:49Z
Indexed on
2012/12/09
23:04 UTC
Read the original article
Hit count: 217
I'm new to java and i'm trying to find a way of incrementing through an user input IP address range.
For example from 192.168.0.1
to 192.168.0.255
. However the way my application works at the moment is the take the from and to ip addresses as a String
.
Is there a way I can increment through all the ip addresses the user input from and to?
Hope this makes sense and please dont flame me, I have looked for an answer!
© Stack Overflow or respective owner