A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
There is any java API to to validate IP6 and IP4 Address?
Joined: Dec 22, 2002
Feb 25, 2011 20:04:48
I have 2 type (IP4 and IP6) Address data,which are
IP4 : "184.108.40.206" format
IP6: "1080:0:0:0:8:800:200C:417A" format.
I wonder if there is any
API to validate them? so I don't have to write a code to it using StringTokenize.
Stephan van Hulst
Joined: Sep 20, 2010
Feb 25, 2011 20:11:07
Take a look at the
class, in java.net.*.
The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
I agree. Here's the link:
subject: There is any java API to to validate IP6 and IP4 Address?
Servlet returning remote address in IPv6 not IPv4
XML - XSD Validation
Validating IPv6 url using regex
byte for IP address storage????
HttpServletRequest getRemoteAddr() has strange results
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015