|
-
May 20th, 2000, 06:07 AM
#1
Thread Starter
Junior Member
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............
-
May 20th, 2000, 08:20 AM
#2
have you tried
Code:
msgbox "ClientIP is " & winsckServ.RemoteHostIP
???
-
May 20th, 2000, 10:21 PM
#3
Thread Starter
Junior Member
I already tried that and its' "remotehost".......... i can get the remote hosts Port, But i cant get their IP...
Grrrrrrrrr..........
-
May 20th, 2000, 10:59 PM
#4
remote host is when you are setting the IP or computer name. remotehostip is used to retrieve the remoteIP
-
May 20th, 2000, 11:04 PM
#5
Thread Starter
Junior Member
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§_¤
=========================================
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|