Today i would like to share some knowledge with you guys, because a lot of us believe we need a dedicated server to run services like faucets, wallets, casinos, and other stuff... But today you will learn a cool way to do it.
The answer is, you only need a computer or a raspberry pi.
As you know, when we connect to our modem we are working on a LAN, and our devices are not open to the public, if we go to a site like
https://whatismyipaddress.com/ we will see the public IP, and when we look at what device is linked to that IP we will realize it's our modem. So, the old method to make from a local PC a server was the next one:
1.-Open our modem configuration
2.-Take down our firewall
3.-Set one device (our pc) as DMZ
4.-Asign a domain with NoIP (If our IP was dynamic then this option was awesome)
But the problem with that is the security, taking down our firewall is a terrible idea for many reasons, the last time i did this i was getting around 30 attacks/minute on my server. Most of them Brutforce on SSH and FTP.
And now we have better ways to do this, without taking down our firewall or configuring the DNZ on our server we can use a tool called NGROK.
1.-Run your program/service, for example, a JSnode on port 3500
2.-ngrok config add-authtoken <TOKEN>
3.-ngrok http
http://localhost:3500And we will get a link like:
https://84c5df47465423.ngrok-free.devAs you see it comes with SSL, which is awesome, right?
That way anyone can make a private service a public one, it applies to any protocol.
I hope this information helps the developers in the community, next time you want to share a project with your clients or want to make public a service that you have running on your local PC, you can do with ngrok for free.
https://ngrok.com/docs/getting-started/