Problem when connecting with winsock through router

Reply

Join Date: Sep 2008
Posts: 4
Reputation: Zeraskurinos is an unknown quantity at this point 
Solved Threads: 0
Zeraskurinos Zeraskurinos is offline Offline
Newbie Poster

Problem when connecting with winsock through router

 
0
  #1
Sep 30th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 3
Reputation: coolcurrent4u is an unknown quantity at this point 
Solved Threads: 0
coolcurrent4u coolcurrent4u is offline Offline
Newbie Poster

Re: Problem when connecting with winsock through router

 
0
  #2
Oct 1st, 2008
Originally Posted by Zeraskurinos View Post
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 4
Reputation: Zeraskurinos is an unknown quantity at this point 
Solved Threads: 0
Zeraskurinos Zeraskurinos is offline Offline
Newbie Poster

Re: Problem when connecting with winsock through router

 
0
  #3
Oct 1st, 2008
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub Command1_Click()
  2. w1.Close
  3. DoEvents
  4. w1.Connect Text1.Text, Text2.Text
  5. DoEvents
  6. DoEvents
  7. End Sub
  8.  
  9. Private Sub Command2_Click()
  10. w2.Close
  11. DoEvents
  12. w2.LocalPort = Text3.Text
  13. DoEvents
  14. w2.Listen
  15. DoEvents
  16. End Sub
  17.  
  18. Private Sub Command3_Click()
  19. If w1.State = sckConnected Then MsgBox "AXAXOUXA!"
  20. End Sub
  21.  
  22. Private Sub w1_ConnectionRequest(ByVal requestID As Long)
  23. If w1.State <> sckConnected Then w1.Close
  24. w1.Accept requestID
  25. End Sub
  26.  
  27. Private Sub w2_ConnectionRequest(ByVal requestID As Long)
  28. If w2.State <> sckConnected Then w2.Close
  29. w2.Accept requestID
  30. End Sub
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC