Sign in to follow this  

How to figure out the closest server to the user's location?

Recommended Posts

How would one get the closest server to the user in HTML? For example, given three servers, US East, US West and Europe, if someone was in the UK, how would the server or client figure this out and "route" them to the EU server? (It doesn't need to actually route, I just need some variable e.g: bestServer = 'EU'). Also it doesn't have to be the closest server, it should be the one that gives the player the best performance.

I am also using Node.js on my backend. 

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.