Neophyte|NL
May 18th, 2006, 10:07 AM
hi, i have a question
I am also using winsock to send some text to a server, but is it possible
that i can send the ip from the client to the server.
What i want to do is, that when the server gets that ip, he will automatically connect to that client.
greetz Neophyte
ok i tried to get it with this code what i placed in the server form:
Dim Received As String
winsock1.GetData Received
fs = Left(Received, 1)
If fs = "E" Then
fs2 = Right(Received, Len(Received) - 1)
client.winsock1.remotehost = fs2
client.winsock1.remoteport = 88
client.winsock1.connect
this did not work :S
I am also using winsock to send some text to a server, but is it possible
that i can send the ip from the client to the server.
What i want to do is, that when the server gets that ip, he will automatically connect to that client.
greetz Neophyte
ok i tried to get it with this code what i placed in the server form:
Dim Received As String
winsock1.GetData Received
fs = Left(Received, 1)
If fs = "E" Then
fs2 = Right(Received, Len(Received) - 1)
client.winsock1.remotehost = fs2
client.winsock1.remoteport = 88
client.winsock1.connect
this did not work :S