How can generate a range of IP addresses from a start and end IP address?
Example for a network "192.168.0.0/24":
String start = "192.168.0.2"
String end = "192.168.0.254"
I want to have:
192.168.0.2
192.168.0.3
192.168.0.4
192.168.0.5
...
192.168.0.254
PS: Network, start and end IP can be dynamic above is just an example.
Thanks...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…