Is it possible to see the server I'm connected to?

Is it possible to see the location of the YouTube server I’m connected to?


- supportbot

You can a traceroute on the destination domain name and then look up the last IP address from the result.

Running a traceroute:

Windows:

tracert example.com

Linux

traceroute example.com

Output:

Tracing route to ipinfo.io [34.117.59.81]
over a maximum of 30 hops:

  1     *        *        *     Request timed out.
  2   297 ms   294 ms   297 ms  172.20.21.254
  3   297 ms   295 ms   296 ms  172.20.22.3
  4     *        *        *     Request timed out.
  5   297 ms   297 ms   295 ms  unn-212-102-40-92.cdn77.com [212.102.40.92]
  6   297 ms   295 ms   297 ms  vl202.dal-eq6-core-2.cdn77.com [185.156.45.72]
  7   296 ms   295 ms   297 ms  dls-b23-link.ip.twelve99.net [62.115.49.209]
  8   298 ms   298 ms   299 ms  google-ic-324803.ip.twelve99-cust.net [62.115.154.223]
  9   299 ms   300 ms   298 ms  209.85.254.155
 10   297 ms   297 ms   297 ms  192.178.44.37
 11   297 ms   297 ms   297 ms  81.59.117.34.bc.googleusercontent.com [34.117.59.81]

Getting the last IP address and looking up the location

I will be using the IPinfo CLI for this operation. The linux shell command:

traceroute ipinfo | ipinfo grepip -o | tail -1 | ipinfo

Breakdown:

  • traceroute youtube.com → Runs a traceroute on YouTube
  • ipinfo grepip -o → IPinfo grepip to extract/grep all the IP addresses from the traceroute result
  • tail -1 → Get the last grepped IP address which is our destination IP address
  • ipinfo → To lookup the ipinfo data of the last/destination IP address

Result:

{
  "ip": "34.117.59.81",
  "hostname": "81.59.117.34.bc.googleusercontent.com",
  "anycast": true,
  "city": "Kansas City",
  "region": "Missouri",
  "country": "US",
  "country_name": "United States",
  "country_flag": {
    "emoji": "🇺🇸",
    "unicode": "U+1F1FA U+1F1F8"
  },
  "country_currency": {
    "code": "USD",
    "symbol": "$"
  },
  "loc": "39.0997,-94.5786",
  "postal": "64106",
  "timezone": "America/Chicago",
  "asn": {
    "asn": "AS396982",
    "name": "Google LLC",
    "domain": "google.com",
    "route": "34.116.0.0/14",
    "type": "hosting"
  },
  "company": {
    "name": "Google LLC",
    "domain": "google.com",
    "type": "hosting"
  },
  "privacy": {
    "vpn": false,
    "proxy": false,
    "tor": false,
    "relay": false,
    "hosting": true,
    "service": ""
  },
  "abuse": {
    "address": "US, CA, Mountain View, 1600 Amphitheatre Parkway, 94043",
    "country": "US",
    "country_name": "United States",
    "email": "google-cloud-compliance@google.com",
    "name": "GC Abuse",
    "network": "34.64.0.0/10",
    "phone": "+1-650-253-0000"
  },
  "domains": {
    "ip": "34.117.59.81",
    "total": 509,
    "domains": [
      "ipinfo.io",
      "host.io",
      "geomium.com",
      "76904.uk",
      "86497.mx"
    ]
  }
}
Ip 34.117.59.81
Hostname 81.59.117.34.bc.googleusercontent.com
Bogon False
Anycast True
City Kansas City
Region Missouri
Country US
Country_name United States
Country_flag_emoji :us:
Country_flag_unicode U+1F1FA U+1F1F8
Country_currency_code USD
Country_currency_symbol $
IsEU False
Loc “39.0997,-94.5786”
Org
Postal 64106
Timezone America/Chicago
Asn_id AS396982
Asn_asn Google LLC
Asn_domain Google.com
Asn_route 34.116.0.0/14
Asn_type Hosting
Company_name Google LLC
Company_domain Google.com
Company_type Hosting
Carrier_name
Carrier_mcc
Carrier_mnc
Privacy_vpn False
Privacy_proxy False
Privacy_tor False
Privacy_relay False
Privacy_hosting True
Privacy_service
Abuse_address “US, CA, Mountain View, 1600 Amphitheatre Parkway, 94043”
Abuse_country US
Abuse_country_name United States
Abuse_email Google-Cloud-Compliance@google.com
Abuse_name GC Abuse
Abuse_network 34.64.0.0/10
Abuse_phone +1-650-253-0000
Domains_total 509

Products used: