M.Anand
January 25th, 1999, 04:17 AM
How do I validate whether the entered IP ADDress is right or not ?
|
Click to See Complete Forum and Search --> : URGENT :- How to Validate an IP Address ?? M.Anand January 25th, 1999, 04:17 AM How do I validate whether the entered IP ADDress is right or not ? Girish January 27th, 1999, 10:14 AM 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. M.Anand January 27th, 1999, 11:20 PM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |