Results 1 to 4 of 4

Thread: Send and Receiving through winsock(Hard stuff)

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    OK..

    I tricked you. Its not directly
    about trasfering through winsock.
    Its alot harder... I made a diagram
    of what I want to do and I need
    code to know how to!
    Could someone help me out here?

    ---------------------------------
    Diagram-------------------------
    ----------------------------------

    -Client Sends Ip Address to Server
    -Host asks server if client has
    contacted it, and gets IP of client


    |Client
    -____>_____>____>
    XXXXXXXXXXXXXXXX|Server Holds IP

    |Host Contacts Server
    -__>______>_____>
    |XXXXXXXXXXXXXXXX|Server says here
    |XXXXXXXXXXXXXXXX|
    |XXXXXXXXXXXXXXXX|Sends IP To HOST
    |XXXXXXXXXXXXXXXX|of Client
    |_<______<______<|


    ________________________________________
    ________________________________________

    Thanks alot,
    |

    [Edited by Evan on 10-14-2000 at 12:01 AM]

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You just want a Client to send its IP to the server and the server to confirm is that it?????

    That diagram didn't do much for me, explain??

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    I want to send the clients IP
    to the server. and the server
    hold the ip. then the host
    will contact the server and
    ask for the clients IP.

  4. #4
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    Once the server has accepted the connection, the client's IP address is in Winsock1(Index).RemoteHostIP.

    Save the connecting Ip addresses in a table for the host.

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