I am trying to use the Microsft Winsock v 5.0 to create clients to server
connection on a LAN via TCP/IP with VFP 5.0a.
On the server application I do the following:
1. In the form Init :
tcpServer.LocalPort =
tcpServer.Listen
2.On the ConnectionRequest:
If tcpServer.State <> sckClosed Then tcpServer.Close
tcpServer.Accept requestID
Endif
On the client side I'm doing the following:
1. In the form Init:
tcpClient.RemoteHost = "RemoteComputerName" or "IP address"
tcpClient.RemotePort =
tcpClient.Connect
2. Command To send data :
tcpClient.SendData "String"
The server application gets into listen state, but the client application
is unable to connect. I even tryed to set the LocalHost and LocalPort,
still without any success.
I would appreciate any input/examples on how I can make it to work.
TIA for your assitance.
Yossi Levi
Yossi@Pacbell.net