Results 1 to 5 of 5

Thread: Winsock? Address? Port?

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    NY
    Posts
    57

    Question Winsock? Address? Port?

    OK Here's the problem.
    I made a program with two winsock controls... and each of them are suppose to connect to two different programs at port 7238. After one side connected, and I try to connect to another program with the other winsock. It says "Address in use". Is is suppose to be like that? I can't have 2 connections on the same port? How do I fix it? Or can I? What should I do?

  2. #2
    Addicted Member
    Join Date
    Mar 2002
    Location
    Lithuania
    Posts
    165
    you can connect to the remote port as meny times as you want if app you connecting to supports multi connections. Local port cant be same.
    P.S. Sorry for my poor English...

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    NY
    Posts
    57
    So, is it possible to use application#1 (127.0.0.1) to connect to my application at 7238, and my application connect to another application#2 (xxx.xx.xx.xxx) at 7238?

  4. #4
    Addicted Member
    Join Date
    Mar 2002
    Location
    Lithuania
    Posts
    165
    yes.
    P.S. Sorry for my poor English...

  5. #5
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    well..

    You cant have more than one connection running on the same port.

    but you can have a control array.. so everytime it needs a new connection it will load to a diff port
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

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