-
Hello, and thanx for reading this! OK here is my problem!
I am makin a client/server program using the "MS Winsock" Control and this is my problem.
I have the server portion of the program set up like this.
************************************
winsckServ.localport=1896
winsckServ.listen
***********************************
OK., now the server portion of the prog is listening for peers that are trying to connect.
the client , portion is siply ......
*************************************
winsckClient.connect
*************************************
--of course im not a dumb ass, thre is more code to this prog than jsut this, but this is where i am running into problems.. I want the server portion of thr program to be able to determine the "IP"-"RemoteP" of the computer that is trying to connect to it. I know how to get the Local port of the client, but i cant get the clients IP.
//// I hope this is not too confusing.........
//// Thanx in advance............
-
have you tried
Code:
msgbox "ClientIP is " & winsckServ.RemoteHostIP
???
-
I already tried that and its' "remotehost".......... i can get the remote hosts Port, But i cant get their IP...
Grrrrrrrrr..........
-
remote host is when you are setting the IP or computer name. remotehostip is used to retrieve the remoteIP
-
Thank you so much,, i am such a dumb ass for not figuring that one out. GRRRRRRRRRR. "Head banging on keyboard"...
Thanx again......
=========================================
¤_ÐÖMïÑ΢o§_¤===¤_ÐÖMïÑ΢o§_¤===¤_ÐÖMïÑ΢o§_¤
=========================================