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.

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

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.