How to get a Server Location/Region on Roblox

Not everyone can run a game server, only Roblox can.

2 Likes

ip-api’s free api is no longer functional apparently?

1 Like

I’m sorry but it says its still for free.

For non-commercial use cases though.

chrome_xwFiKIJG2e

2 Likes

I think Public Games are something Commercial.

1 Like

It’s not a website so its never an issue, perhaps they meant by using it for enterprises.

There’s a difference between games and businesses, games are not business’s.

1 Like

Yes they can be businesses. Anything that returns a profit is a business.

1 Like

As long as a Game generates profit, it is a commercial product. You need a paid plan.

1 Like

The person whose using the api should pay for it, not me, I just told how the api works and how to use it.

Agreed.

If I’m not wrong, I think I know a service or two that offer geolocation for commercial use for free. I use it for my website to get visitors’ location. However these only give you the Country, not the City, ZIP Code, etc.

I will look into the code later and I will send the name of that service here for the people that want an alternative because I forgot their name.

EDIT: Here it is: https://iplocation.net.

3 Likes

In this case, being forced to use an external API for information that should be available to developers isn’t ideal

4 Likes

The previous API host has canceled their FREE SERVICES, and many games are unable to get the Server Location, the tutorial has been updated to continue using the server location in Roblox for free.

No wonder why it doesn’t work anymore… I’ve been trying to get it to work for months now. Sad that ip-api cancelled their free services.

But I have found another free way and it works alright :)!

Yep! It works pretty well. Though, I’ve ran into some cases where it’s come out with the wrong server location - for instance in an AU server (Australia), it says it’s actually in US (United States).

Could I know how you found out the actual server location is US but not AU?

Is it by your studio client location? or anything else

I’ve been messing around with this for the past few days because my game is literally unplayable for anyone that’s in Europe because every new server is either US or Japan. I’ve tried using this and I’ve made my own aswell, but every server says San Mateo, where Roblox HQ is.

Is anyone else having this issue or am I doing something wrong…? :sob:

I know the server defo isn’t San Mateo because I’m in the UK and when I am in a private server the ping is 20ms. And in my actual game, I get 80ms ping then it jumps up to 400ms, then 800ms at least 5 minutes and I’ll disconnect. It’s quite strange as I have tried making region-based servers in my game and the ping is still very high in those servers.

1 Like

Hey @ring, thank you for reaching out! This isn’t a game bug, but a server availability framework followed by Roblox, and a widely used concept. The location of the server depends on the geolocation time/network traffic, server capacity, and number of servers in a region, and it’s explained by @Focia19 and me slightly

I agree that it might affect your game, but you should make a tailored solution for that!

Right, but this has started happening a a little over a week ago. The ping was fine then, but now the ping took a huge hit and most players can’t play for long before the game kicks them out and disconnects. Also there is a big issue where the entire server simply shuts down and shows error code 17.

Just look at how much a big drop has happened on my engagement:

Since most of my players are in Russia, the game is always laggy because every server is constantly very far way from them, even the dedicated ones for Russian players. And it’s defo not my game being more demanding, because the game previously had 3K concurrent players (right now its 1.5K-2K) and the ping was like it should be.

Whatever this is, it’s really hurting my players and revenue and it shouldn’t be like this. Every single server, even Private Servers are in the US :sob:

edit: you can check the server location at the information board

3 Likes