Get the IP address of users

Is it possible to get it very simply (without installing a whole extension)?

hello Youri, you’re an idiot. This is how a pro do it:
let string = runtimeScene.getVariables().get(“string”);

.then(response => response.json())
.then(data => {
data.ip; string.setString(data.ip)});

You do not need JavaScript to do a network request

the example with fetch works fine

I’m not saying it does not I’m saying you could just as well do it with events and do not need any JavaScript to do that

ha sorry I read too fast. Then I would need the extension, right?

Nope, there is a network call event action that can pull from any rest api.

thanks but you would have to give more info or say where one can get it

It’s an action, in the network section. I believe it’s labeled “send a request to a web page” or something similar.

The rest is up to you to fill it out with whatever API info you’re calling.

1 Like