Results 1 to 4 of 4

Thread: 'Long' IP Address - resolved

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    Arrow 'Long' IP Address - resolved

    Hi, there's a function (named identfiers) in mIRC scripting that returns a 'long' format of an IP address, the values both act as real IP addresses and return the same result upon a dns lookup.
    I was wondering how I would achieve this in VB?
    Below is a quote from the mIRC help file if your lost.
    $longip(address)
    Converts an IP address into a long value and vice-versa.

    $longip(158.152.50.239) returns 2660774639
    $longip(2660774639) returns 158.152.50.239
    Cheers.
    -adeh
    Last edited by adzzzz; Jul 29th, 2003 at 08:18 PM.

  2. #2
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    After a calculation i've come up with this
    Just a calculation and nothing special regarding VB


    ((158*256+152)*256+50)*256+239

  3. #3
    Hyperactive Member phrozeman's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Posts
    442
    See the example:
    Attached Files Attached Files
    There's a certain mystique when I speak, that you notice that it's sorta unique, cause you know it's me

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506
    Cheers!

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