Results 1 to 5 of 5

Thread: Winsock Control! L@@k!!!!!!!!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Kitchener Ontario Canada
    Posts
    20

    Question

    Hello, and thanx for reading this! OK here is my problem!

    I am makin a client/server program using the "MS Winsock" Control and this is my problem.

    I have the server portion of the program set up like this.

    ************************************
    winsckServ.localport=1896
    winsckServ.listen
    ***********************************

    OK., now the server portion of the prog is listening for peers that are trying to connect.

    the client , portion is siply ......

    *************************************
    winsckClient.connect

    *************************************

    --of course im not a dumb ass, thre is more code to this prog than jsut this, but this is where i am running into problems.. I want the server portion of thr program to be able to determine the "IP"-"RemoteP" of the computer that is trying to connect to it. I know how to get the Local port of the client, but i cant get the clients IP.

    //// I hope this is not too confusing.........
    //// Thanx in advance............

  2. #2
    Guest
    have you tried

    Code:
    msgbox "ClientIP is " & winsckServ.RemoteHostIP

    ???

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Kitchener Ontario Canada
    Posts
    20

    Talking

    I already tried that and its' "remotehost".......... i can get the remote hosts Port, But i cant get their IP...

    Grrrrrrrrr..........

  4. #4
    Guest
    remote host is when you are setting the IP or computer name. remotehostip is used to retrieve the remoteIP

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Kitchener Ontario Canada
    Posts
    20

    Wink

    Thank you so much,, i am such a dumb ass for not figuring that one out. GRRRRRRRRRR. "Head banging on keyboard"...

    Thanx again......



    =========================================
    ¤_ÐÖMïÑ΢o§_¤===¤_ÐÖMïÑ΢o§_¤===¤_ÐÖMïÑ΢o§_¤
    =========================================

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