CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    57

    URGENT :- How to Validate an IP Address ??



    How do I validate whether the entered IP ADDress is right or not ?

  2. #2
    Join Date
    Feb 1999
    Location
    kar,india
    Posts
    12

    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.

  3. #3
    Join Date
    Apr 1999
    Posts
    57

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured