Google drive mounted in Windows/Linux

yup noted. Tempted to test another ip today, or else i might consider enabling a vpn via my router.
But openserve is giving me the middle finger today (centurion) ... sigh

How many edge servers do you get?

On ipv4 I get a max of 4. On ipv6 I get 2 but they look the same as the v4 ones so it's just dual stack for the same edge.

No hope for gdrive in SA anymore.

You should be able use the hostfile to specify the ip or ip's that http://www.googleapis.com/ use so you can use international IP's which will still go via google transit.

I'm thinking of trying the Kenya or Amsterdam edge servers to see how the speeds are.
 
Last edited:
So I edited my host file on my pc with the below.

2a00:1450:400e:80c::2004 googleapis.com
2a00:1450:400e:80c::2004 www.googleapis.com
172.217.168.196 googleapis.com
172.217.168.196 www.googleapis.com

It's a Google Drive edge server I have been getting really good speeds to on my server hosted in The Netherlands.

Wow look at the single threaded speed from Google drive using this server. ~500Mbps single thread.

ams_servers.png

Below is a trace route to the IP. Because the IP is still a google IP they are still announcing it to ISPs in JHB meaning it's also using Google's transit to Amsterdam. Pretty decent latency @ ~163ms

Screenshot 2022-07-10 221932.png
 
  • Love
Reactions: Yuu
So I edited my host file on my pc with the below.

2a00:1450:400e:80c::2004 googleapis.com
2a00:1450:400e:80c::2004 www.googleapis.com
172.217.168.196 googleapis.com
172.217.168.196 www.googleapis.com

It's a Google Drive edge server I have been getting really good speeds to on my server hosted in The Netherlands.

Wow look at the single threaded speed from Google drive using this server. ~500Mbps single thread.

View attachment 1344424

Below is a trace route to the IP. Because the IP is still a google IP they are still announcing it to ISPs in JHB meaning it's also using Google's transit to Amsterdam. Pretty decent latency @ ~163ms

View attachment 1344426

I’d like to use this for my plex server and pull from a different country as the ZA one only pulls sometimes 30mbps

But wouldn’t the latency affect loading times
 
So I edited my host file on my pc with the below.

2a00:1450:400e:80c::2004 googleapis.com
2a00:1450:400e:80c::2004 www.googleapis.com
172.217.168.196 googleapis.com
172.217.168.196 www.googleapis.com

It's a Google Drive edge server I have been getting really good speeds to on my server hosted in The Netherlands.

Wow look at the single threaded speed from Google drive using this server. ~500Mbps single thread.

View attachment 1344424

Below is a trace route to the IP. Because the IP is still a google IP they are still announcing it to ISPs in JHB meaning it's also using Google's transit to Amsterdam. Pretty decent latency @ ~163ms

View attachment 1344426

thx will add the NL one as well. tempted to let the script only pick the best one, since i am not sure if my linux box willl rotate between all ip's inside the host files.
so far very stable speeds... outside RSA :(

results for initial round of tests tonight (500mbps line)

[GES] [INFO] 21.87 MiB/s. Above criterion endpoint. Whitelisting IP '74.125.200.95'.
[GES] [INFO] 20.93 MiB/s. Above criterion endpoint. Whitelisting IP '74.125.24.95'.
[GES] [INFO] 20.17 MiB/s. Above criterion endpoint. Whitelisting IP '142.251.10.95'.
[GES] [INFO] 20.86 MiB/s. Above criterion endpoint. Whitelisting IP '142.251.12.95'.
[GES] [INFO] 21.08 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.4.95'.
[GES] [INFO] 29.36 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.68.10'.
[GES] [INFO] 29.36 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.68.42'.
[GES] [INFO] 29.34 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.68.74'.
[GES] [INFO] 29.36 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.68.106'.
[GES] [INFO] 27.69 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.72.234'.
[GES] [INFO] 29.35 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.14.74'.
[GES] [INFO] 27.64 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.14.106'.
[GES] [INFO] 24.83 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.31.170'.
[GES] [INFO] 22.92 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.175.42'.
[GES] [INFO] 24.06 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.175.10'.
[GES] [INFO] 18.83 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.194.95'.

Thus resulting hostfile
172.217.194.95 www.googleapis.com
142.251.10.95 www.googleapis.com
142.251.12.95 www.googleapis.com
74.125.24.95 www.googleapis.com
142.250.4.95 www.googleapis.com
74.125.200.95 www.googleapis.com
172.217.175.42 www.googleapis.com
172.217.175.10 www.googleapis.com
172.217.31.170 www.googleapis.com
172.217.14.106 www.googleapis.com
142.250.72.234 www.googleapis.com
142.250.68.74 www.googleapis.com
172.217.14.74 www.googleapis.com
142.250.68.10 www.googleapis.com
142.250.68.42 www.googleapis.com
142.250.68.106 www.googleapis.com

Feel bad for murdering international pipes , but hand is forced
 
I’d like to use this for my plex server and pull from a different country as the ZA one only pulls sometimes 30mbps

But wouldn’t the latency affect loading times

In theory yes but even though the Google ZA edge is just 3ms away for me I have noticed a significant slow down of drive.read api requests.

I want to get the Kenya edge servers because it's not that far so should be good if there isn't any throttling applied there.

Google totally throttled down za drive probably to accommodate YouTube after YouTube caches took a big hit with congestion
 
In theory yes but even though the Google ZA edge is just 3ms away for me I have noticed a significant slow down of drive.read api requests.

I want to get the Kenya edge servers because it's not that far so should be good if there isn't any throttling applied there.

Google totally throttled down za drive probably to accommodate YouTube after YouTube caches took a big hit with congestion

Yes it’s actually quite bad , I couldn’t play a 2.5Gb Blu-ray of plex via direct play , it was stuttering and lagging no matter how much I paused it to buffer

Even smaller files take a while to get loaded where Before it was near instant playback

Any idea of how to add this to Ubuntu ?
 
Yes it’s actually quite bad , I couldn’t play a 2.5Gb Blu-ray of plex via direct play , it was stuttering and lagging no matter how much I paused it to buffer

Even smaller files take a while to get loaded where Before it was near instant playback

Any idea of how to add this to Ubuntu ?


It should be pretty easy.

As root just nano /etc/hosts

at the bottom of the file or depending how your file looks like just add

172.217.168.196 googleapis.com
172.217.168.196 www.googleapis.com

I think you need to reboot or reload the network for it to be applied.
You can add the Ipv6 also if you enabled IPv6 on your instance. This will force the Netherlands based server which is pretty fast for me. I will do some tests like @Neo_X to see how it looks like on Kenya seervers and we can give the UK and France servers also a go.
 
thx will add the NL one as well. tempted to let the script only pick the best one, since i am not sure if my linux box willl rotate between all ip's inside the host files.
so far very stable speeds... outside RSA :(

results for initial round of tests tonight (500mbps line)

[GES] [INFO] 21.87 MiB/s. Above criterion endpoint. Whitelisting IP '74.125.200.95'.
[GES] [INFO] 20.93 MiB/s. Above criterion endpoint. Whitelisting IP '74.125.24.95'.
[GES] [INFO] 20.17 MiB/s. Above criterion endpoint. Whitelisting IP '142.251.10.95'.
[GES] [INFO] 20.86 MiB/s. Above criterion endpoint. Whitelisting IP '142.251.12.95'.
[GES] [INFO] 21.08 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.4.95'.
[GES] [INFO] 29.36 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.68.10'.
[GES] [INFO] 29.36 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.68.42'.
[GES] [INFO] 29.34 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.68.74'.
[GES] [INFO] 29.36 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.68.106'.
[GES] [INFO] 27.69 MiB/s. Above criterion endpoint. Whitelisting IP '142.250.72.234'.
[GES] [INFO] 29.35 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.14.74'.
[GES] [INFO] 27.64 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.14.106'.
[GES] [INFO] 24.83 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.31.170'.
[GES] [INFO] 22.92 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.175.42'.
[GES] [INFO] 24.06 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.175.10'.
[GES] [INFO] 18.83 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.194.95'.

Thus resulting hostfile
172.217.194.95 www.googleapis.com
142.251.10.95 www.googleapis.com
142.251.12.95 www.googleapis.com
74.125.24.95 www.googleapis.com
142.250.4.95 www.googleapis.com
74.125.200.95 www.googleapis.com
172.217.175.42 www.googleapis.com
172.217.175.10 www.googleapis.com
172.217.31.170 www.googleapis.com
172.217.14.106 www.googleapis.com
142.250.72.234 www.googleapis.com
142.250.68.74 www.googleapis.com
172.217.14.74 www.googleapis.com
142.250.68.10 www.googleapis.com
142.250.68.42 www.googleapis.com
142.250.68.106 www.googleapis.com

Feel bad for murdering international pipes , but hand is forced

Nice script did you make it or is it somewhere on github would love to run it for my Ubuntu Box to improve speeds to gDrive
 
Here is the Kenya Google Drive edge servers. It's only 48ms away but slow sadly....

Kenya, MBA
Name: www.googleapis.com
Addresses:
2a00:1450:401a:801::200a - slow
2a00:1450:401a:800::200a - very fast
172.217.170.170
172.217.170.202
 
Last edited:
Here is the Kenya Google Drive edge servers. It's only 48ms away but slow sadly....

Kenya, MBA
Name: www.googleapis.com
Addresses: 2a00:1450:401a:801::200a
2a00:1450:401a:800::200a
172.217.170.170
172.217.170.202

This IP

2a00:1450:401a:800::200a

from Kenya gave me the best speeds so far. ~420Mbps single thread. Might be worth setting it in the host file.
 
  • Wow
Reactions: Yuu
This IP

2a00:1450:401a:800::200a

from Kenya gave me the best speeds so far. ~420Mbps single thread. Might be worth setting it in the host file.

Actually, this edge is faster than any of the EU servers :oops:

This is the first time I have seen 1Gbps on my line with a single thread from Google Drive.

rclone_gdrive_kenya.png


Also uploading to this edge server is pretty fast :oops:

--drive-chunk-size=128M --transfers=10 should sort you out.

Screenshot 2022-07-11 160703.png
 
Last edited:
  • Love
Reactions: Yuu
Here is a list of servers that respond back to Hetzner DNS most are France probably because Hetzner's biggest peering is in DE-CIX in France. I also added the list of South Africa at the bottom but they are all slow.

Code:
Hetzner Germany for Google France edge servers

Non-authoritative answer:
Name:   www.googleapis.com
Addresses:
172.217.18.106
172.217.23.106
216.58.212.138
142.250.185.74
142.250.185.106
216.58.212.170
142.250.74.202
142.250.186.42
142.250.186.74
142.250.186.106
142.250.186.138
142.250.186.170
142.250.184.202
142.250.184.234
172.217.16.138
172.217.18.10
2a00:1450:4001:82a::200a
2a00:1450:4001:82b::200a
2a00:1450:4001:828::200a
2a00:1450:4001:829::200a

Google ZA edge servers

Non-authoritative answer:
Name:    www.googleapis.com
Addresses: 
2c0f:fb50:4002:800::200a
2c0f:fb50:4002:805::200a
2c0f:fb50:4002:804::200a
2c0f:fb50:4002:801::200a
2c0f:fb50:4002:806::200a
172.217.170.106
172.217.170.42
172.217.170.74
172.217.170.10
216.58.223.138
 
  • Love
Reactions: Yuu
Here is a list of servers that respond back to Hetzner DNS most are France probably because Hetzner's biggest peering is in DE-CIX in France. I also added the list of South Africa at the bottom but they are all slow.

Code:
Hetzner Germany for Google France edge servers

Non-authoritative answer:
Name:   www.googleapis.com
Addresses:
172.217.18.106
172.217.23.106
216.58.212.138
142.250.185.74
142.250.185.106
216.58.212.170
142.250.74.202
142.250.186.42
142.250.186.74
142.250.186.106
142.250.186.138
142.250.186.170
142.250.184.202
142.250.184.234
172.217.16.138
172.217.18.10
2a00:1450:4001:82a::200a
2a00:1450:4001:82b::200a
2a00:1450:4001:828::200a
2a00:1450:4001:829::200a

Google ZA edge servers

Non-authoritative answer:
Name:    www.googleapis.com
Addresses:
2c0f:fb50:4002:800::200a
2c0f:fb50:4002:805::200a
2c0f:fb50:4002:804::200a
2c0f:fb50:4002:801::200a
2c0f:fb50:4002:806::200a
172.217.170.106
172.217.170.42
172.217.170.74
172.217.170.10
216.58.223.138
I just configured comodo dns servers on my end, seems to be doing fine for a 100Mbps line.
 
Shot got it setup and seems to be running fine but my ISP seems to hate gDrives get max 8MBps per thread on a 500MBps line
maybe give the ip provided by cavedog above a try (e.g. manual entry into the hosts file, stopping the script)
172.217.170.170 www.googleapis.com
172.217.170.170 googleapis.com

I have been running comparisons against it the last day or two, and it provides a consistent speed
[GES] [INFO] 35.71 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.170.170'.
[GES] [INFO] 38.46 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.170.170'.
[GES] [INFO] 38.46 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.170.170'.
[GES] [INFO] 38.43 MiB/s. Above criterion endpoint. Whitelisting IP '172.217.170.170'.
 
Did anyone manage to find a way to download via your browser but force a specific server?

The string before .googleusercontent.com always changes so using the host file doesn't work well.
 
@cavedog Thanks for been on top of this thought i was going mad with plex issues was even gonna jump to dropbox but its 30 usd per user and need 3 users.

My isp only supports ip4 which ip would you recommend in the host file.

I been using this mount point

rclone mount --allow-non-empty --allow-other --dir-cache-time 168h --timeout 1h --umask 002 --poll-interval=1m --vfs-cache-mode full --vfs-read-ahead 10G --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 128M GooDriveCrypyted: /media

Tried but slow speed on a 2 gig file
172.217.170.170 www.googleapis.com
172.217.170.170 googleapis.com
 
@cavedog Thanks for been on top of this thought i was going mad with plex issues was even gonna jump to dropbox but its 30 usd per user and need 3 users.

My isp only supports ip4 which ip would you recommend in the host file.

I been using this mount point

rclone mount --allow-non-empty --allow-other --dir-cache-time 168h --timeout 1h --umask 002 --poll-interval=1m --vfs-cache-mode full --vfs-read-ahead 10G --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 128M GooDriveCrypyted: /media

Tried but slow speed on a 2 gig file
172.217.170.170 www.googleapis.com
172.217.170.170 googleapis.com

Try 172.217.170.202

If you fail with it you need to go for a Netherlands or France ip.
 
@cavedog Thanks for been on top of this thought i was going mad with plex issues was even gonna jump to dropbox but its 30 usd per user and need 3 users.

My isp only supports ip4 which ip would you recommend in the host file.

I been using this mount point

rclone mount --allow-non-empty --allow-other --dir-cache-time 168h --timeout 1h --umask 002 --poll-interval=1m --vfs-cache-mode full --vfs-read-ahead 10G --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 128M GooDriveCrypyted: /media

Tried but slow speed on a 2 gig file
172.217.170.170 www.googleapis.com
172.217.170.170 googleapis.com
Easiest for me was, to let googleapis.com resolve using comodo's free dns servers:
8.26.56.26 and 8.20.247.20
See: https://www.comodo.com/secure-dns/switch/

This sends me randomly to london and amsterdam clusters. Works great, I max out my 200Mbps line and plex plays the media fine.

This way, no need to pin to specific servers in a hosts file.

I actually use Adguardhome to block adds, which allows me to set upstream servers, so I use them only for googleapis.com but they should work fine for everything. I basically still wanted my dstv stream traffic to use my local isp akamai cache.
 
Top
Sign up to the MyBroadband newsletter
X