Forum General Get Client Script Origin IP Address

Discussion and help relating to the PlayerIO JavaScript SDK

Get Client Script Origin IP Address

Postby ruzippizur » August 22nd, 2019, 2:58 pm

Is it possible to get information like domain or IP Address where the client script is being hosted or executed?
ruzippizur
 
Posts: 8
Joined: June 14th, 2019, 10:33 am

Re: Get Client Script Origin IP Address

Postby Henrik » September 20th, 2019, 7:56 am

That depends on your game client. It's not possible for the server-side to figure this out, if that's what you're asking. The server-side only knows where the user is located, but it can't know where the user got the game client from. You game client is probably able to figure out where it is hosted, depending on client language and environment.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Get Client Script Origin IP Address

Postby ruzippizur » December 17th, 2019, 3:55 am

Thanks Henrik. Just found the latest October update with whitelisting domains and this is what I have been looking for! :D
ruzippizur
 
Posts: 8
Joined: June 14th, 2019, 10:33 am


Return to General