ip address naming convention

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • angie

    ip address naming convention

    i have to validate a field whether the input is a valid ip address or
    a server name... is there any commonly agreed naming convention for
    that??? how should i go about this?
  • Ron Natalie

    #2
    Re: ip address naming convention

    angie wrote:
    i have to validate a field whether the input is a valid ip address or
    a server name... is there any commonly agreed naming convention for
    that??? how should i go about this?
    IP addresses consist of only digits and three '.' characters.
    Anything else might be a host name.

    That should lead you to a solution.

    Comment

    • Gianni Mariani

      #3
      Re: ip address naming convention

      Ron Natalie wrote:
      angie wrote:
      >i have to validate a field whether the input is a valid ip address or
      >a server name... is there any commonly agreed naming convention for
      >that??? how should i go about this?
      >
      IP addresses consist of only digits and three '.' characters.
      Anything else might be a host name.
      >
      That should lead you to a solution.
      IPV6 address are are little more complex - given that the world is
      moving over to IPv6 in a few months then we'll need to consider that....

      Comment

      • Ron Natalie

        #4
        Re: ip address naming convention

        Gianni Mariani wrote:
        Ron Natalie wrote:
        >angie wrote:
        >>i have to validate a field whether the input is a valid ip address or
        >>a server name... is there any commonly agreed naming convention for
        >>that??? how should i go about this?
        >>
        >IP addresses consist of only digits and three '.' characters.
        >Anything else might be a host name.
        >>
        >That should lead you to a solution.
        >
        IPV6 address are are little more complex - given that the world is
        moving over to IPv6 in a few months then we'll need to consider that....
        OK digits and colons...big deal. All he says he wanted to know if it
        was a name or address, not how to parse the address into the 32 (V4) or
        128 (V6) address value.

        Comment

        Working...