Forums » Union Coders »
accessing ip's of other clients
Added by filip szulczewski 754 days ago
I found this in the documentation:
By default, a client knows its own IP address only, and does not have access to the IP addresses of other clients on the server.
My question is:
How do i change the default setting? I need ip's of other clients to identify them.
Replies
RE: accessing ip's of other clients - Added by colin moock 754 days ago
hi filip,
there is no current server option to give a client access to other clients' ips. we plan to add that option when we implement server-side security. for now, a client can share its own ip with other clients by setting a new, custom shared attribute for the ip. for example,
var self:Client = reactor.getClientManager().self();
self.setAttribute("IP", self.getIP());
hope that helps,
colin
RE: accessing ip's of other clients - Added by filip szulczewski 753 days ago
Hey Colin,
Thanks I'll give that a try.