Independent, hands-on guides to hosting, SEO and marketing tools. No paid rankings, ever.See how we test →

What Is Server Name Indication (SNI) and Why Your Website Needs It

Server Name Indication (SNI) lets one IP address host many HTTPS websites, each with its own SSL certificate. Here is how it works and why your site needs it.

Serp & Server is reader-supported. When you buy through links on our site, we may earn an affiliate commission, at no extra cost to you. It never decides our rankings. Here’s how it works.

What is Server Name Indication (SNI): one server securely hosting many websites
Jump to a section

Server Name Indication (SNI) is the small piece of the HTTPS handshake that lets one server, on one IP address, host lots of secure websites and show each visitor the right SSL certificate. If your site runs on shared hosting, sits behind a CDN or uses a free Let’s Encrypt certificate, it almost certainly relies on SNI already.

In this guide we explain what SNI is in plain English, how it works step by step, why your website needs it, and how to check that it’s set up properly. No networking degree required.

What is Server Name Indication (SNI)?

Server Name Indication is an extension to TLS, the protocol that puts the “S” in HTTPS. When your browser starts a secure connection, SNI lets it say which website it wants, for example www.example.com, before any encryption is set up.

That one detail matters because the server has to present an SSL/TLS certificate right at the start of the connection. If the server hosts 50 websites, it needs to know which of its 50 certificates to send. SNI tells it.

Think of an apartment block. The street address (the IP address) gets the post to the right building, but the name on the envelope (the SNI hostname) gets it to the right flat. Without the name, the caretaker can only guess.

SNI was first standardised in 2003 and is now defined in RFC 6066. Every modern browser, operating system and web server supports it.

Why SNI exists: the one-IP, one-certificate problem

Plain HTTP never had this problem. A browser sends a Host header with every request, so a single server can host thousands of sites on one IP address. This is called name-based virtual hosting.

HTTPS broke that. The Host header is only sent after the encrypted connection exists, but the server must pick a certificate before that. Without Server Name Indication, the server sees nothing but an IP address, so it can only ever serve one certificate per IP and port.

For years, that meant every HTTPS website needed its own dedicated IP address. That was expensive, slow to set up and, as the world ran short of IPv4 addresses, increasingly impractical.

Server Name Indication lets many SNI websites share one IP address
With SNI, one IP address works like one building with many front doors.

How Server Name Indication works, step by step

SNI happens in the first few milliseconds of every HTTPS visit. Here’s what goes on when someone types your address into their browser:

  1. DNS lookup. The browser looks up your domain and gets the server’s IP address.
  2. Client Hello. The browser connects to that IP and sends a “Client Hello” message to start the TLS handshake. Inside it is the SNI extension containing your hostname.
  3. Certificate selection. The server reads the SNI hostname and picks the matching certificate from all the ones it holds.
  4. Server Hello. The server replies with that certificate. The browser checks it’s valid and issued for the domain it asked for.
  5. Encrypted session. Both sides agree on keys, the padlock appears and the real page request (with its Host header) travels safely encrypted.

If the server doesn’t recognise the SNI hostname, it falls back to a default certificate. That’s usually where the dreaded “certificate name mismatch” warnings come from.

SNI in the TLS handshake: the browser names the site and the server picks the matching certificate
The browser names the site in its Client Hello; the server answers with the matching certificate.

Why your website needs SNI

You rarely have to switch Server Name Indication on yourself, but it’s quietly doing a lot of work for your site. Here’s why it matters.

1. Affordable HTTPS on shared hosting

Shared and managed WordPress hosts put hundreds of customers on the same server and IP. SNI is what lets each of those sites have its own certificate, so you get HTTPS without paying extra for a dedicated IP. If you’re comparing plans, our web hosting guides cover what’s included.

2. Free SSL certificates

Free, auto-renewing certificates from Let’s Encrypt and the “one-click SSL” buttons in hosting dashboards all assume SNI. Without it, free SSL on shared hosting simply wouldn’t be possible.

3. CDNs and modern platforms

Content delivery networks, load balancers and website builders serve millions of domains from shared IP ranges. They use Server Name Indication to route each request and present the right certificate at the edge.

4. Trust, conversions and SEO

Browsers flag non-HTTPS pages as “Not secure”, and Google has used HTTPS as a ranking signal since 2014. A wrong or missing certificate shows a full-page warning that sends most visitors straight back to the search results. SNI keeps the right certificate in front of every visitor.

5. Easier multi-site management

If you run several sites, a staging site or a few subdomains on one VPS, SNI lets each have its own certificate on the same IP. No juggling extra addresses.

SNI SSL vs dedicated IP SSL

Some hosts still sell dedicated IP addresses as an add-on. For almost every website, server name indication is the better choice.

SNI SSLDedicated IP SSL
CostFree, included with hostingUsually a monthly fee
Sites per IPUnlimitedOne certificate per IP and port
SetupAutomatic on most hostsManual IP assignment and DNS changes
Browser supportAll modern browsers and devicesEverything, including very old clients
Best forAlmost every websiteRare legacy or compliance needs

A dedicated IP does not boost your rankings on its own. Google has said for years that sharing an IP with other sites isn’t a problem.

Browser and server support for SNI

Server Name Indication support is effectively universal today. Chrome, Firefox, Safari, Edge and every current mobile browser send SNI, and Apache, Nginx, LiteSpeed, IIS (8 and later), Caddy and every major CDN understand it.

The only clients that can’t use SNI are very old ones, such as Internet Explorer on Windows XP, Android 2.x and Java 6. Those systems stopped getting security updates many years ago, and most of them can’t use modern TLS versions anyway. Unless your analytics show real traffic from them, you can safely ignore them.

SNI, privacy and Encrypted Client Hello (ECH)

There’s one catch with classic Server Name Indication: the hostname is sent in plain text. Your page content stays encrypted, but anyone watching the network, such as an ISP, a public Wi-Fi operator or a firewall, can see which site you’re connecting to. Some networks use this to filter or block sites.

The fix is Encrypted Client Hello (ECH), which encrypts the whole Client Hello, SNI included, using a public key the site publishes in its DNS records. ECH became an official internet standard in March 2026 as RFC 9849, and major browsers and some CDNs already support it.

ECH doesn’t replace SNI. It hides it. The server still needs the hostname to choose a certificate; outsiders just can’t read it. If your site is behind a CDN that offers ECH, it’s usually a single setting.

How to check if your website uses SNI

You can confirm your Server Name Indication setup in a couple of minutes.

Use an online SSL checker

Run your domain through Qualys SSL Labs. In the results, look for “This site works only in browsers with SNI support”. That message is normal and simply confirms your site relies on SNI. You’ll also get a grade for your overall HTTPS setup.

Test SNI from the command line

With OpenSSL installed, compare the certificate your server returns with and without a hostname:

# With SNI (what browsers do)
openssl s_client -connect example.com:443 -servername example.com </dev/null | openssl x509 -noout -subject

# Without SNI
openssl s_client -connect example.com:443 -noservername </dev/null | openssl x509 -noout -subject

If the two commands return different certificates, the server is using SNI to choose between them. You can also run curl -v https://example.com and check the certificate’s subject in the output.

Common SNI errors and how to fix them

Most Server Name Indication problems come down to the server handing out the wrong certificate. These are the ones we see most often:

  • Certificate name mismatch (NET::ERR_CERT_COMMON_NAME_INVALID). The server didn’t match the hostname and sent its default certificate. Check that the domain, and the www version, are added to the site and covered by the certificate.
  • Another site’s certificate appears. On your own server, the first virtual host is the default. Give each site its own server_name (Nginx) or ServerName (Apache) block with its own certificate files.
  • Works in browsers but fails in scripts or apps. Older tools and libraries may not send SNI by default. Update them or set the server name option explicitly.
  • Certificate missing after a domain change. When you add or move a domain, reissue the SSL certificate in your hosting panel so the new hostname is included.

On shared or managed hosting, a quick message to support usually fixes these in minutes, since the host controls the server name indication configuration.

Server Name Indication FAQs

What does SNI stand for?

SNI stands for Server Name Indication. It’s an extension to the TLS protocol that lets a browser tell a server which hostname it wants at the start of an HTTPS connection.

Do I need to enable SNI on my website?

Usually not. Almost every web host, CDN and website builder uses SNI automatically. You only configure it yourself if you manage your own server, and even then it’s on by default in Apache, Nginx and other modern web servers.

Is SNI secure?

Yes. SNI doesn’t weaken your encryption, and your page content stays fully protected. The only thing it reveals is the hostname you’re visiting, and Encrypted Client Hello (ECH) now closes that gap.

Does SNI affect SEO?

Not directly. Google can crawl SNI sites without any problem, and sharing an IP address doesn’t hurt rankings. What SNI does is make reliable HTTPS easy, which helps with trust, security warnings and Google’s HTTPS ranking signal.

What is the difference between SNI and a SAN certificate?

SNI is how the browser asks for a hostname. A SAN (Subject Alternative Name) certificate is one certificate that covers several hostnames. They work well together: a server can use SNI to pick between several certificates, some of which may cover multiple domains.

Final word

Server Name Indication is one of those technologies you never notice until it goes wrong. It’s the reason one server can host thousands of secure sites, why free SSL works on cheap hosting, and why your visitors see a padlock instead of a scary warning.

For most site owners there’s nothing to switch on. Run a quick SSL check, make sure every version of your domain is covered, and turn on ECH if your CDN offers it. For more plain-English explainers like this one, browse our guides.

Enjoyed this guide?

Get the newsletter

Get more guides like this one on the topics you choose. Confirm your email and you are done.

  • Pick only the topics you care about
  • About one email a week, no spam
  • Change topics or unsubscribe any time
Newsletter signup


Serp & Server Avatar

Written by

Keep reading