Re: IP address from winsock
When the server gets the connection request he will get the client'sm public ip with it.
It's called the remotehost.
Re: IP address from winsock
ok so when someone connects to the server, on the serverside, how can i list/store the IP of the connected users? possibly in a database im thinking.. and if so what do i do on the serverside to show the IP of the connected person? could i do something like msgbox remotehostip ( just for example) or possibly, add a listview item with the new IP?
Re: IP address from winsock
if you want a display on the server so that you can manually change ranks and such for the users the i'd suggest using a listview.
and why are you storing the ip's? they are already located in the winsock object, you just have to look in them to get the data. i think storing it in another array or whatever wouldnt really help you any. all you will use in the serverside is the index's of the winsock control array, unless you plan on banning ip's and such. which you filter that at connection time, or loop thru the ws array.