NOTE: GOOGLE HAVE CHANGED THEIR FREE TIER FROM F1-MICRO TO E2-MICRO. PLEASE USE E2-MICRO TO GET A FREE SERVER. YOU CAN UPGRADE YOUR CURRENT INSTANCE LIKE THIS.
I first heard you could get a free Virtual Private Server instance on the Google Compute Engine from a random person on Twitter.
Cheers to the random dude who suggested rather snarkily over twitter that I should simply use a Google Compute f1-micro instance to periodically ping my scripts etc no I won't be dignifying that suggestion with a reply but yes I will be using that free service thank you09:05 AM - 18 Jul 2020
So here's how to do it.
- Go to the Google Cloud Platform Console and sign up/in if you have to and go to the Compute Engine section using the hamburger menu top left.
- Enable Compute Engine if it's not already enabled and then set up billing (you need to add a credit card or PayPal but don't worry you won't be charged).
- Create a new instance in one of the free tier locations (Iowa, Oregon, or South Carolina) with machine type
f1-micro
.
Finish the server config (make sure you add the max 30GB free disk space) and spin up the server.
Click the Connect via SSH button to log in.
And that's about it for now. Enjoy your free server forever!
If this post helped you please consider sponsoring my open source projects on GitHub for $1.
NOTE: Even though you can run this server for free, Google may charge if you go over certain "free tier" limits etc so just keep a lookout for that in the terms and conditions...
Update: The free offering from Oracle Cloud is almost certainly better than Google Cloud. See this article 👇
Latest comments (47)
No longer true, using an external IP to access ANY service (including SSH) will result on charges (including Free Tier)
Does this only work for US instances?
Yes I believe free tier is for US server only for now. But this may change in the future.
Oracle offers more regions here:
dev.to/phocks/how-to-get-2x-oracle...
What a click bait. At least tell people about the free usage limits
Firebase also allows free setup with no credit card. The Spark plan. You don't get a "server" but you can run cloud functions for free. The Cloud functions do have some limitations. Depending on what you're looking for, like just running queries against a database, this could be an option.
Here's a list of resources that are free or have a free tier: github.com/ripienaar/free-for-dev
Great share, thank you.
didn't get the PayPal option.
And, on the page it says "Put Google Cloud to work with $300 in credit to spend over the next 90 days."
It might give you some "free" forever small service or something but they ask for credit card...
"don't worry we won't charge you"
AHEM
THEN Why the fuck are you asking for CC, Google? Can't you verify I'm a human with a classic captcha?
F* Google :)
Probably to avoid abuse, opening tons of multiple free accounts
It's not ' forever'
It’s all nice and comfy until google does this to you, when you least expect it. I don’t trust google at this moment.
They are locking people out of their account, and careless to even give an explanation 😏
i see. thank you
Yeah, That's true. But I never got into any trouble because of that (unless you want to run a server 24X7 ). When you ping to the server it will wake up in few seconds. At least that's what you can expect from free web hosting. No one will give you a full-featured server free of cost. All free hostings have their own limitations. I hosted a Telegram Bot on Heroku so far it's going well without any troubles and at 0$ cost :)
Oracle also gives free VDS instances.
oracle.com/cloud/free/#always-free
Each have 1Gb RAM, 1/8 of CPU core and 50 Gb of storage (witch is rather cool). The biggest limitation of those is bandwidth limit of 10 Mbps,still suitable for lots of tasks. I host some demo web sites and proxy on those.
Seems like they've updated the bandwidth throttle to 50 Mbps. Awesome! Maybe I'll have to write up another DEV article :)
Thanks. I didn't know this! Seems better specs than Google Cloud too! Will try it out.
$4.28 monthly estimate as written in your screenshot does not mean "free forever"...
dev.to/phocks/comment/17lo9
Thanks for the post will look out for the more detailed guide. Maybe it would be an option.
I know it's more work. But why not to consider the raspberry pi. It's perfect for small scripts/personal project or even some prototyping/testing work. Been using it for a while it's not perfect but helps to get things done.
Yeah actually I have a raspberry for that purpose but it's not for everything. I'm used to set up everything with docker containers and some images are not available for ARM. Never had this problem with AMD64 VPS.
You mentioned adding 30GB of disk. Where can I do that? Is that done in the Management Security Disk Networking Sole Tenancy section?
I'm just trying to avoid paying for something I don't really need.
Thanks
You'll find the setting under boot disk (if I remember correctly). Change the size (GB) from 10 to 30.
It would be great to have this explanation in the article.
Some comments may only be visible to logged-in visitors. Sign in to view all comments. Some comments have been hidden by the post's author - find out more