DEV Community

Cover image for How to get a free Google server forever
Joshua Byrd
Joshua Byrd

Posted on • Edited on • Originally published at phocks.github.io

How to get a free Google server forever

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.

So here's how to do it.

  1. 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.
  2. 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).
  3. Create a new instance in one of the free tier locations (Iowa, Oregon, or South Carolina) with machine type f1-micro.

Alt Text

Finish the server config (make sure you add the max 30GB free disk space) and spin up the server.

Alt Text

Alt Text

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 👇

Oldest comments (46)

Collapse
 
zorfling profile image
Chris Colborne

Nice one mate, very handy.

Any idea why your screenshot shows a $4.28 estimate for the month? It says the first 744 hours are free (aka 31 days), so it's odd it would show that estimate.

Collapse
 
phocks profile image
Joshua Byrd • Edited

Yeah I'm assuming that's just how much it would cost if it wasn't on the free tier 🤷 but it's definitely free. I've been running it for a few months.

Collapse
 
py_talk profile image
py.talk()

744 hours is for every month :)

for exaple you can have 10 instances funning 74,4 hours each. fore every next hour you'll pay

Collapse
 
arafays profile image
Abdul Rafay Shaikh

About showing the amount charged this is how Google billing works it shows you much resources you used and then subsidizes it at the end of billing period so you would know using same resources after consuming your free tier you have an idea how much you will be charged.

Collapse
 
ervin_szilagyi profile image
Ervin Szilagyi

Likewise, Azure and AWS give also give you some free instances for 12 months (I know, it's not forever but it's something). From Azure you get a B1S instance, from a AWS a t2.micro or a t3.micro.

Collapse
 
vedraiyani profile image
Chintan Raiyani

Yeah that's true. It's for 90 days $300 not forever. This post is confusing the people by using the word forever.

Collapse
 
phocks profile image
Joshua Byrd • Edited

Nope this is not a trial period. Google Cloud free tier is indeed forever (or at least until they shut it down).

Thread Thread
 
harshamv profile image
Harsha MV

Like Google Photos :)

Thread Thread
 
mukherjee96 profile image
Aritra Mukherjee

Nothing lasts forever 😔
thenextweb.com/plugged/2020/11/12/...

Collapse
 
5456qwe profile image
1214586

Actually AWS charges you like hell without any notice if you consume your free tier.

Thread Thread
 
noblesilence profile image
Aye Aye Mon

You can usually negotiate with them. They charged me for not terminating the instances. But when I told them that I didn't know I needed to terminate unused instances, I got a full refund.

Collapse
 
hanna profile image
Hanna Rose

The issue I have with GCP is it requires a CC, prepaid doesn't work, and it seems Privacy cards make them want to ask you to verify your identity, which normally i'd do but I need to get a replacement ID.

Collapse
 
kunamatata profile image
Maxime Caly

For those curious about billing and pricing, GCP has a pretty good page here:
cloud.google.com/free/docs/gcp-fre...

Collapse
 
calag4n profile image
calag4n

Awesome, thanks a lot. ✌️

Collapse
 
instinct profile image
Instinct

Good article!
By the way, heroku also provides 500mb?
Is this server better?

Collapse
 
bscott profile image
Brian Scott

Heroku is for runtimes, not offer ssh and custom scripts if needed

Collapse
 
abdellahaski profile image
Abdellah ASKI

You should mention that you get only 1GB of free egress bandwith, you will be charged for additional egress traffic.

Collapse
 
bnorikane profile image
Bruce N Norikane • Edited

Thanks this is great information.
When I signed up, I had to accept the $300 credit offer.
Series F2 is not available in my account. E2 is the smallest.
Will that still be free forever?

Collapse
 
phocks profile image
Joshua Byrd

Only the f1-micro is free I believe. Good luck!

Collapse
 
starfreck profile image
Starfreck

Try Heroku. it's easiest and free forever with 5 apps per 1 account without any credit cards or debit cards. Tho it will not give you database hosting for free but you can find other free services online where you can host your small DBs for personal projects.

Collapse
 
ematsuoka profile image
Eric Matsuoka

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

Collapse
 
phocks profile image
Joshua Byrd

You'll find the setting under boot disk (if I remember correctly). Change the size (GB) from 10 to 30.

Collapse
 
bcroq profile image
Bertrand Croq

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