0

I use winsock a lot in my programs and it is very good but I can't achieve a connection when one of the users is behind an adsl router.

What should I do in order to make the connection?
I tryied port forwarding but the problem remains.

The applications I tested this on are working fine on a lan network or ona an internet network but with modem connection.

plz help me.

2
Contributors
2
Replies
5
Views
9 Years
Discussion Span
Last Post by Zeraskurinos
0

I use winsock a lot in my programs and it is very good but I can't achieve a connection when one of the users is behind an adsl router.

What should I do in order to make the connection?
I tryied port forwarding but the problem remains.

The applications I tested this on are working fine on a lan network or ona an internet network but with modem connection.

plz help me.

can you pls post your source code so that i can check it for you

0
Private Sub Command1_Click()
w1.Close
DoEvents
w1.Connect Text1.Text, Text2.Text
DoEvents
DoEvents
End Sub

Private Sub Command2_Click()
w2.Close
DoEvents
w2.LocalPort = Text3.Text
DoEvents
w2.Listen
DoEvents
End Sub

Private Sub Command3_Click()
If w1.State = sckConnected Then MsgBox "AXAXOUXA!"
End Sub

Private Sub w1_ConnectionRequest(ByVal requestID As Long)
If w1.State <> sckConnected Then w1.Close
w1.Accept requestID
End Sub

Private Sub w2_ConnectionRequest(ByVal requestID As Long)
If w2.State <> sckConnected Then w2.Close
w2.Accept requestID
End Sub
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.