FaRd0wN
February 28th, 2000, 09:59 PM
I am trying to experiment with winsock but am experiencing some difficulties. I have included the following code which seems to be the problem. After I run the program with the information inputted and click on this button below, Windows gives me a runtime error....
address is not reachable from local machine
what is the matter with my code?
<vbcode>
Private Sub Command3_Click()
Text1.Text = "click"
Text2.Text = Ip
Text4.Text = Port
Winsock1.RemoteHost = Ip
Winsock1.RemotePort = Port
Winsock1.Connect Ip, Port // error seem to be here
End Sub
</vbcode>
address is not reachable from local machine
what is the matter with my code?
<vbcode>
Private Sub Command3_Click()
Text1.Text = "click"
Text2.Text = Ip
Text4.Text = Port
Winsock1.RemoteHost = Ip
Winsock1.RemotePort = Port
Winsock1.Connect Ip, Port // error seem to be here
End Sub
</vbcode>