|
Java™ by example!
|
|
|
How do I determine whether an IP address is a multicast address?
A multicast address is an ip address used to denote multiple recepients. They fall in the range 224.0.0.1 to 239.255.255.255. You can use invoke the method isMulticastAddress on an instance of InetAddress to determine whether the specified address falls within that range. Main.java:
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|