I tried looking at various tutorials like this one,
but it just didn’t work so, how would I do it?
I tried looking at various tutorials like this one,
but it just didn’t work so, how would I do it?
main question is what r u using a proxy for? discord? that would be easier but anyway here’s how to create a proxy using whatever vps u want
ip:port
, ex. 123.69.4.20:22
mkdir /home/name
, change name
to anything u want to call the folder. this creates a folder in /home
, years of using vps’ and i cant figure out where to create folders/home/name
) (once again reminding to change name
to your folder name earlier)index.js
or whatever u want, just remember itnpm i express node-fetch@2.0.0
in ur terminal (i forgot how to use the http
builtin module lol)const express = require("express")
const fetch = require("node-fetch")
const proxy = express()
proxy.get("/", (req, res) => {
const url = req.query.url
fetch(url).then(result => result.text()).then(response => { // requests to the url given
res.send(response)
}).catch(() => res.send("failed lmao"))
})
proxy.listen(8080, () => { console.log("proxy is on") }) // indicates if the port is open (127.0.0.1:8080)
so this would open a port on your vps ip, and the url would be ip:8080
(im pretty sure 8080 is widely used)
15. in the terminal write node index.js
(reminder to change index.js
to your file name)
16. wait until it says “proxy is on”, since that is what i wrote in the code to indicate if the port is open.
17. if you want to use it on roblox (reminder to enable http reqs in game settings), use
local HttpService = game:GetService("HttpService")
local response = HttpService:GetAsync("http://yourVPSip:8080/?url=https://gyatrizz.org")
print("HTTP RESPONSE", response)
change https://gyatrizz.org
to whatever url u want to fetch
keep in mind i didnt test any of these, but it should work
So lets say my computer is off will is still run?
What extension are you talking about?
and what password are you talking about
yes, since you bought a vps, which is like a computer that u rent that should run 24/7 to run your programs.
vscode extension
i dont use digitalocean, so please figure it out.