Hello there. I’ve been wanting to access localhost using HttpService in roblox studio but when I do, I get this weird error…
127.0.0.1: Trust check failed
Heres the code I’m using, It’s fairly simple…
local httpsService = game:GetService("HttpService")
local data = httpsService:GetAsync("127.0.0.1")
What exactly am I doing wrong here?
Also, I’m fairily new to HTTPService so I might look like an idiot…
1 Like
Try
httpsService:GetAsync("http://your.ip.here")
What?? That still doesn’t work.
It works for me. Perhaps Roblox only accepts
localhost
and not
127.0.0.1
(even though they are the same).
2 Likes
Well… I didn’t have that python script running (I’m assuming it’s supposed to listen for when a request is sent to localhost), I wasn’t using RequestAsync
, I wasn’t using any of those extra arguments, and I wasn’t using https://localhost:8000
, so that’s probably why my code didn’t work.
I’m going to accept the solution for now, and when I’m done with school, I’ll check it out, and see if it works.
Thanks.
1 Like
Yes, it’s just a web server.
https://
might fail because localhost is not signed (unless you did it yourself).
The port :8000
shouldn’t matter.
1 Like