Input mask for IP addresses?

  • Thread starter Charles W. Stricklin
  • Start date
C

Charles W. Stricklin

I was wondering if anyone had come up with a good way of verifying a
complete IP address entry (no more than 12 digits, exactly 3 periods) and/or
an input mask to make entry easier?

If case you're not aware, an IP address is comprised of 4 "octets" of 1 to 3
decimal digits each, each "octet" divided by a period. Some examples:

127.0.0.1
255.255.255.001

If anyone has anything on this, I'd appreciate seeing it.

Charles
 
R

Rick Brandt

Charles W. Stricklin said:
I was wondering if anyone had come up with a good way of verifying a
complete IP address entry (no more than 12 digits, exactly 3 periods) and/or
an input mask to make entry easier?

If case you're not aware, an IP address is comprised of 4 "octets" of 1 to 3
decimal digits each, each "octet" divided by a period. Some examples:

127.0.0.1
255.255.255.001

If anyone has anything on this, I'd appreciate seeing it.

I did a small app a while back that dealt with IP addresses and it actually
worked out a lot better to store each "octet" in its own field. It's a lot
easier if you want to know the highest value from a specific "piece" and
takes very little to combine them together when you need to.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top