Results 1 to 3 of 3

Thread: Winsock Control & Port

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Posts
    101

    Post

    I am trying to debug a VB program written by someone else that uses the Winsock Control. I haven't been able to get the program to work on my computer. I believe that the problem is with the Port.

    How do I establish a port on my PC for my program to use? In the program's documentation, this is what was stated: Open up the port set in the registry through the user defined setting.

    Can someone interpret this for me and give information on how to establish the port?

    TIA.

    Chris

    ------------------
    CJ

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    The Port would need to be whatever Port the Recieving Program is expecting the Data to come in on, so if you send Data though Port 10 in the Client, the Recieving Program needs to be listening on that same Port, or it'll miss it.

    I believe all the author was saying in his/her comment was that they load the Port Number from a Value they had stored in the Registry previously. (Probably from a Configuration Form/Last Application Run)

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Posts
    101

    Post

    Thanks for the response Aaron. We were able to figure it out.

    Chris

    ------------------
    CJ

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