Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to discover all the available IP addresses of the web-server?

Tags:

java

java-me

How to detect ( discover ) all of the web-servers by using j2me ? I mean that the web-servers are inside a LAN.


1 Answers

I assume you are not interested in asking every IP address or named host from the list hard-coded into an app.

You may find Zeroconf protocol useful. It is suited for discovering of available services with the means of broadcast or multicast IP packets.

Debian Wiki page has some links to Zeroconf software, including libapache2-mod-dnssd.

As for client part, maybe this will help: Are there any other Java libraries for bonjour/zeroconf apart from JMDNS?

like image 55
pwes Avatar answered Dec 15 '25 15:12

pwes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!