|
Hi,
(((in client side)))
first i think you put winsock control in array using indexes method so you 'll easily load new winsock by :-
load winsock (conNum + 1)
considering that conNum is the number of current connections made by winsock controls
then you 'll send computer data like it's name or what else to the server application and include with it the computer (client) IP , don't forget to seperate them by a comma or what else then ....
(((server side)))
you'll accept this data normally using winsock controls in the server side and use this method to split the remote computer name and IP (client) :-
Dim listarry
listarry = Split(text2.text, vbCrLf)
Dim i
For i = 0 To UBound(listarry)
List1.AddItem listarry(i)
Next i
but you have before this step to check if the recieved data contain the required IP that u want to display it's name or not or only sort them by IP or any method you want
need any help in the reply , i'm waiting for u !
Yours,
|