Skip to content

What is an ASN? Autonomous system numbers, BGP and why proxy buyers should care

By the ProxyOnly team · 14 Nov 2026 · 5 min read

An ASN identifies the network that owns an IP address. How ASNs and BGP work, four ways to look one up, and why it matters when you buy a proxy.

An ASN, or autonomous system number, is the identifier of a network on the internet. Every IP address you meet is announced to the rest of the internet by one such network, and the ASN tells you which one: a consumer internet provider, a mobile carrier, a hosting company, a university or a cloud provider.

That makes it the quickest way to answer a useful question about any address: what kind of network is this? Websites use the answer to decide how to treat a visitor, and it is the best check on a proxy you have just bought. This article explains what ASNs and BGP are, shows four ways to look one up with real output, and explains why it matters for proxies.

What an autonomous system is

An autonomous system is a network, or a group of networks, run by one organisation under a single routing policy. The internet is a collection of tens of thousands of these, and they connect to each other to carry traffic. Each has a number. The numbers started as 16-bit values, up to 65,535, and were extended to 32 bits by RFC 6793, which allows about 4.29 billion.

The numbers come from the five regional internet registries: ARIN, RIPE NCC, APNIC, LACNIC and AFRINIC. Some ranges are reserved for private use, so networks that do not connect to the public internet can use them freely: 64512 to 65534, and 4200000000 to 4294967294, according to RFC 6996.

How BGP connects them

Autonomous systems tell each other which IP ranges they can reach using the Border Gateway Protocol, defined in RFC 4271. A range of addresses, called a prefix, is announced by a particular ASN, which is said to originate it. Other networks hear the announcement and learn where to send traffic for that range.

This is why you can map any IP address to an ASN: find the prefix it falls in and see who announces it. Here are some real examples:

  • AS15169 is Google
  • AS13335 is Cloudflare
  • AS16509 is Amazon, which includes AWS
  • AS8075 is Microsoft
  • AS7922 is Comcast, a consumer provider
  • AS7018 is AT&T
  • AS3320 is Deutsche Telekom

Most of the large hosting and cloud providers have several ASNs, and so do large carriers.

ASN, ISP and prefix are different things

These terms get mixed up. An ISP is a company that sells internet access. An ASN is the identifier of one network, and a company can have several of them, while a small provider may have none and rely on its upstream provider's. A prefix is a block of IP addresses, such as 142.250.80.0/24, and each prefix is announced by an ASN. A lookup runs from an address to its prefix, from the prefix to the ASN that announces it, and from the ASN to the organisation that holds it.

Four ways to look up an ASN

All four below were run on one address, 142.250.80.46, and returned the same answer when we ran them. Results can change over time.

The simplest is a web service that returns the owner:

curl https://ipinfo.io/142.250.80.46/org
AS15169 Google LLC

Team Cymru's DNS lookup takes the address with its four numbers reversed:

dig +short TXT 46.80.250.142.origin.asn.cymru.com
"15169 | 142.250.80.0/24 | US | arin | 2012-05-24"

The same service answers over whois, with a header row:

whois -h whois.cymru.com " -v 142.250.80.46"
AS      | IP               | BGP Prefix          | CC | Registry | Allocated  | AS Name
15169   | 142.250.80.46    | 142.250.80.0/24     | US | arin     | 2012-05-24 | GOOGLE - Google LLC, US

And RIPEstat has a public API that returns JSON, which is handy in scripts:

curl "https://stat.ripe.net/data/prefix-overview/data.json?resource=142.250.80.46"

The answer includes the announcing ASN, 15169, and its holder. Free services rate-limit anonymous use, so for a long list of addresses use one of the DNS or API methods with a pause between queries.

Why websites care about ASNs

A website can tell, from the ASN alone, whether a visitor is on a consumer connection, a mobile network, a business network or a hosting provider. Bot management systems and fraud tools use that in several ways:

  • Many apply stricter limits or challenges to hosting networks, since real visitors rarely browse from servers.
  • They track reputation per network and per prefix, so a few bad addresses can taint a range.
  • They can block or rate limit a whole ASN when a lot of abuse comes from it.
  • They compare the ASN with other signals, such as the visitor's claimed country and browser.

Why websites block IPs and proxies shows where the ASN fits among those signals.

Why proxy buyers should care

The network behind a proxy's address decides how websites categorise it:

So an ASN lookup is the simplest verification after a purchase. Look up the address you were given and check that the owner is the kind of network you paid for, and that the country matches. If you bought an ISP address and the owner is a hosting company, ask your provider before you build on it.

Two other uses follow. Some providers let you target a particular provider's network, which is the idea behind our proxies by ISP pages. And spread matters: addresses that all sit in one network and one small range tend to be blocked together, so a pool spread over many networks is more resilient.

Caveats

  • Databases disagree. The same address can be labelled differently by different services, especially after a range changes hands.
  • One organisation can have many ASNs, and a carrier's mobile and fixed networks are often separate.
  • An ASN does not tell you the location. Country information comes from registry records and is only a rough guide, as IP geolocation and geo-blocking explains.
  • The owner of an address is not the person using it. A cloud address belongs to the cloud provider whoever is renting it today.

Questions people ask

What is the ASN of my IP address?

Use any of the four lookups above with your address. If you are checking a proxy, look up the proxy's address, not your own.

Does the ASN tell me who is using an address?

No. It tells you which network the address belongs to. A cloud or hosting address belongs to the provider, whoever is renting it today.

Try it yourself

Create an account, add funds from US$1 and order a proxy in the country you need.

Keep reading