Will HTTP Service work with Local Host?

I have a database where I typically write to my localhost first before pushing updates online. If I run it on the local host can I use my REST API on Roblox?

1 Like

If by localhost, you mean the literal IP address 127.0.0.1, then no. The game runs on their (Roblox’s) servers, not yours, so localhost would point to the machine the game server is running on.

If you’re hosting this on a home server, you can instead connect to your public IP (granted that you configured your firewall/router/server/etc. correctly). You can find your public IP using a tool like https://www.ipchicken.com/.

3 Likes

That sucks; didnt really want to expose my IP but thanks; guess Ill just stick to using Atom’s HTTP tool plugin on it.

1 Like

I use localhost with my Roblox Studio Mod Manager to do FVariable scans…

2 Likes

I’m using localhost for some Studio stuff. Of course it won’t work online, but it’s great if you want to build an access point between Studio and local resources/applications.

1 Like

Oh sweet yeah thats all I cared about is studio not the server

1 Like

do you know or there is an example about this? i want to connect arduino with roblox to have my gyroscope values into roblox

There are options that you can do. If you only want to run HTTP requests to your localhost through studio then you can do so. Localhost functions normally on the studio (as the studio is run locally).

Option 1

If not you’ll either need to expose a port publicly through your router configurations (not recommended) or you could use something like ngrok which exposes your localhost port publicly through a tunnel. The problem with this is ngrok has limits on how long you can run something unless you have a premium account. You can look at other localhost tunneling services here

Option 2

Now if you change your mind and don’t want to use the localhost anymore you can use a service like AWS, Google Cloud, or Digital Ocean (my personal favorite).

Self Plug: You can use my digital ocean referral code for $100 DigitalOcean | Cloud Hosting for Builders

1 Like