How do I get IP address of user?

Get help using Construct 2

Post » Fri Oct 07, 2016 7:08 am

Hi, I want get exact IP address of user of app I'm building.
Last edited by DaniellMesquito on Fri Oct 07, 2016 4:19 pm, edited 1 time in total.
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
24
S
7
G
4
Posts: 326
Reputation: 3,878

Post » Fri Oct 07, 2016 4:18 pm

bump
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
24
S
7
G
4
Posts: 326
Reputation: 3,878

Post » Fri Oct 07, 2016 4:35 pm

If you want the public IP address, the only way is to ask a server on the Internet to tell you what your outside address appears to be. You can do this by AJAX requesting a server, e.g. https://api.ipify.org (note: I don't know if that site has rate limits or accounts or what, it just demonstrates how it works)
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Fri Oct 07, 2016 4:40 pm

Ashley wrote:If you want the public IP address, the only way is to ask a server on the Internet to tell you what your outside address appears to be. You can do this by AJAX requesting a server, e.g. https://api.ipify.org (note: I don't know if that site has rate limits or accounts or what, it just demonstrates how it works)


Thank you so much, I'll try it. :D
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
24
S
7
G
4
Posts: 326
Reputation: 3,878

Post » Fri Oct 07, 2016 5:41 pm

Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Fri Oct 07, 2016 6:41 pm

korbaach wrote:IPaddress.capx


Its working like a charm! Thanks :D
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
24
S
7
G
4
Posts: 326
Reputation: 3,878


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests