1
0
Fork
You've already forked steamping
0
No description
  • Shell 100%
Find a file
2024年08月28日 15:41:14 +00:00
README.md License 2024年08月28日 15:41:14 +00:00
servers.csv init 2024年08月28日 18:40:00 +03:00
steamping.sh init 2024年08月28日 18:40:00 +03:00

Steam CDN Server Ping Script

This Bash script pings Steam CDN servers and displays the top servers with the lowest ping times. It's useful for finding the fastest Steam CDN servers for your location.

Usage

bash steamping.sh [number_of_results]
  • number_of_results: Optional. The number of top servers to display (default is 10)

Run Without Downloading

You can run the script directly without downloading it using either of these commands:

Using curl:

bash <(curl -s https://codeberg.org/nyuuzyou/steamping/raw/branch/master/steamping.sh)

Using wget:

bash <(wget -qO- https://codeberg.org/nyuuzyou/steamping/raw/branch/master/steamping.sh)

Requirements

  • Bash shell
  • ping command
  • curl command (for downloading the CSV if not present locally)

CSV File Format

The script expects a CSV file named servers.csv with the following format:

subdomain,ip,country,city

Example:

cache1-ams1.steamcontent.com,155.133.248.18,NL,Amsterdam

If the CSV file is not found locally, the script will attempt to download it from the Codeberg repository.

Output

The script will display the top Steam CDN servers with their hostnames, IP addresses, locations, and ping times in milliseconds.

Example output:

Top 10 Steam CDN servers with lowest ping times: 
alibaba.cdn.steampipe.steamcontent.com (109.61.33.33) - Frankfurt am Main, DE: 39.0 ms
cache1-ams1.steamcontent.com (155.133.248.18) - Amsterdam, NL: 43.8 ms
cache1-ala-kzkt.steamcontent.com (89.218.61.98) - Shchuchinsk, KZ: 57.1 ms
cache1-atl3.steamcontent.com (162.254.199.131) - Atlanta, US: 124 ms
cache1-atl3.steamcontent.com (162.254.199.131) - Atlanta, US: 126 ms
cache1-bis-mdco.steamcontent.com (24.143.35.39) - Minneapolis, US: 148 ms
cache1-bkk-jast.steamcontent.com (110.164.2.129) - Bangkok, TH: 212 ms
cache1-bkk-thbb.steamcontent.com (110.164.3.145) - Bangkok, TH: 215 ms
cache1-bkk-true.steamcontent.com (119.46.84.161) - Bangkok, TH: 220 ms
cache1-akl-tdeg.steamcontent.com (101.98.5.116) - Auckland, NZ: 298 ms

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This repository is dedicated to the public domain under the Creative Commons Zero (CC0) license. This means you can:

  • Use it for any purpose, including commercial projects.
  • Modify it however you like.
  • Distribute it without asking permission.

No attribution is required, but it's always appreciated!

CC0 license: https://creativecommons.org/publicdomain/zero/1.0/deed.en

To learn more about CC0, visit the Creative Commons website: https://creativecommons.org/publicdomain/zero/1.0/