Results 1 to 6 of 6

Thread: Connection IP

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2006
    Location
    Pakistan
    Posts
    388

    Post Connection IP

    I want to know the IP address of the other system that my winsock is connected to. RemoteHost and RemoteHostIP only are long value while I need a value in IP address format.

  2. #2
    Member
    Join Date
    Apr 2007
    Location
    Kurdistan, Slemani
    Posts
    43

    Re: Connection IP

    IP address format? 255.255.255.255? RemoteHostIP returns that kind of format.
    Last edited by Kurdistan; Dec 16th, 2007 at 01:44 PM.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Connection IP

    Are you using VB6?

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2006
    Location
    Pakistan
    Posts
    388

    Post Re: Connection IP

    Yes VB6

  5. #5
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Connection IP

    I thought so too.

    Quote Originally Posted by Kurdistan
    IP address format? 255.255.255.255? RemoteHostIP returns that kind of format.

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Connection IP

    A VB6 long would be a four byte value. An IP address is four bytes. I suspect you are getting the IP address as you expect, it just needs to get converted into something. Do you want to actually see the string: Byte1 period byte2 period byte3 period byte4?
    My usual boring signature: Nothing

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