URGENT :- How to Validate an IP Address ?

How do I validate whether the entered IP ADDress is right or not ?
[66 byte] By [M.Anand] at [2007-11-15 10:12:24]
# 1 Re: URGENT :- How to Validate an IP Address ?
Perfect validation of IP address is not possible. Because in this world there are lot of systems which has different IP addresses. What you can validate is the format ot the pattern of IP address. For example, you validate 1011.101.11.1, this is an invalid IP address because the maximum possible is 255.255.255.255. You get the substrings from the IPString and check the value. If it is greater than 255 then give error message.

Please try this method...

Girish

Project Manager,

GuildSoft Pvt. Ltd.
Girish at 2007-11-10 2:13:06 >
# 2 Re: URGENT :- How to Validate an IP Address ?
Hi Girish

Thanks for your reply. But I think I should have been more explicit. I

want to know whether a Computer with the particular IP Address exists -->

How to do Pinging ? I don't allow the user to enter more than 255

Thanks

Anand
M.Anand at 2007-11-10 2:14:06 >