-
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?
-
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.
-
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?
-
-
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 :)