![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 3
Rep Power: 0
![]() |
Get connected ip addresses
I have a client and server that i want the client to be able to display all the ip addresses of other clients that are connected to the server. I have no idea how to do this so if anyone has an example or somethin that would be great.
|
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Client: "I want all the IPs, bitch!"
Server: "Sure - I'll send 'em to you." Client: "Thanks." Server: "Here you go. 202.195.81.11, etc." Client: "I love you." Easy as pie. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Aug 2005
Posts: 3
Rep Power: 0
![]() |
Haha very funny.
Common i really need some help with this. |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() ![]() |
As the clients login to your server, store their IP addresses in a file. Have the server listen for an AllIP request from the client, then have the server read the IP data file to the client (as in send the IP data line by line as if it were messages).
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#5 |
|
Expert Programmer
|
Yeah very simple Select Case around the Data_Received event on the server. What used to throw me though was that winsock occasionally randomly splits the packets in two which could result in intermittent bugs, so I'd suggest buffering the output here and using some sort of control character (e.g. vbCrLF) to signal the end of a command.
So why's your nick a TCP command? ![]() |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Aug 2005
Posts: 3
Rep Power: 0
![]() |
Lol, i got my nick from another name i used to use for a game called utopia. My province was called acklang and everyone just called me ack for short, later when i got into programming i realized that my nick was a tcp command and so i kept it.
Anyway i will try your suggestions and see what i can do. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|