954,559 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem when connecting with winsock through router

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.

Zeraskurinos
Newbie Poster
4 posts since Sep 2008
Reputation Points: 10
Solved Threads: 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

coolcurrent4u
Newbie Poster
4 posts since Jul 2008
Reputation Points: 10
Solved Threads: 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
Zeraskurinos
Newbie Poster
4 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You