Dissecting an IP address

Results 1 to 2 of 2

Thread: Dissecting an IP address

  1. #1
    Join Date
    Dec 1969

    Default Dissecting an IP address

    I have the following problem: I am using asp/vbscript. I would like to point a user to a different file location depending on there location. I can do this by dissecting there ip.<BR><BR><BR><BR><BR><BR>These are an example of two possible addresses. I would like to dissect the second part of the IP, everything that comes after the first dot and before the second dot. The results i need from these example would be 11 for the first and 2 for the second. If it was always one number i can do it but the trouble is it can be one or two digits? Many thnaks in advance for any help

  2. #2
    Join Date
    Dec 1969

    Default Split

    IPArray = Split(IPAddress,".")<BR><BR>This will put each part the IP address in a different array element.

Posting Permissions

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