Fórum Debian

Versão Completa: Browse through IP range?
Você está atualmente visualizando uma versão simplificada do conteúdo. Visualizar a versão completa com formatação.
Hi everyone

I'm trying to write a class that takes a beginning IP and an end IP (say and I basically need a nextIp() method in there that will start at the first ip (the start IP provided in the constructor) and return the next IP every time it's invoked until the end IP is reached. I have tried breaking down the IPs into integers for each octet but this is quickly starting to hurt my brain!

I know there are tons of libraries out there, is there something that exists already that i could use to achieve that goal? My goal is to eventually create an object for each machine it finds that responds to a ping and import them in my DB.


I didn't find the right solution from the Internet.
References: https://www.java-forums.org/networking/9...range.html

B2B Marketing Video Example
URL de Referência