Results 1 to 4 of 4

Thread: Get client ip adress or pc name with winsock?

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    60

    Get client ip adress or pc name with winsock?

    hi, i have a question

    I am also using winsock to send some text to a server, but is it possible
    that i can send the ip from the client to the server.
    What i want to do is, that when the server gets that ip, he will automatically connect to that client.

    greetz Neophyte

    ok i tried to get it with this code what i placed in the server form:

    VB Code:
    1. Dim Received As String
    2.  
    3. winsock1.GetData Received
    4. fs = Left(Received, 1)
    5. If fs = "E" Then
    6. fs2 = Right(Received, Len(Received) - 1)
    7. client.winsock1.remotehost = fs2
    8. client.winsock1.remoteport = 88
    9. client.winsock1.connect

    this did not work :S
    Last edited by Neophyte|NL; May 18th, 2006 at 01:14 PM.

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