X (formerly Twitter) gets blocked in two completely different ways, and the right fix depends on which one you're dealing with. If it's a school or work network, a VPN usually sorts it quickly. If it's a country-level ban, you need a specific protocol setting rather than just a different server. Knowing which you're dealing with saves a lot of time.

Network block or country ban? How to tell

Switch to mobile data and try X without a VPN. If it loads on mobile data but not on your current wi-fi, the wi-fi network is blocking it at the router level: a school, workplace, or hotel policy. A standard VPN usually sorts this. If X fails on both mobile data and wi-fi, it's likely a national-level block and needs a different approach.

X has been blocked by governments in several countries, and in the most restrictive places standard VPN connections are blocked too, which is why just switching servers doesn't always work. In those cases, changing one setting in your VPN app is usually the fix.

Connect to a server in an unrestricted country

For school, work, and hotel blocks, connect your VPN to a server in the UK, Germany, Netherlands, or Switzerland before opening X. Make sure you're using the full VPN app on your device rather than a browser extension: extensions only cover traffic inside the browser and won't protect the X app.

NordVPN and ExpressVPN are our top picks. Both have large server networks across unrestricted countries and connect reliably.

Connect your VPN before opening X

If X was already open when you turned your VPN on, it may have connected using your regular internet first. Close X completely before connecting your VPN, then reopen it.

  • On iPhone: swipe X away in the app switcher, connect your VPN, then reopen it.
  • On Android: close X in the recent apps view, connect your VPN, then reopen it.
  • In a browser: close any X tabs, connect your VPN, then open a fresh tab and go to x.com.

The order matters: VPN on, then X.

Switch protocol if you're in a censored country

If you're travelling to a heavily censored country, install and configure your VPN before you arrive. VPN provider websites are often blocked inside these countries, and setting one up after you land is very difficult.

In countries with strict internet controls, internet providers scan traffic to detect and block standard VPN connections. Switching to Lightway in ExpressVPN, or OpenVPN TCP on port 443 in NordVPN, makes your traffic look like ordinary HTTPS browsing, which gets past the block. Our guide on changing your VPN protocol has the steps for each app.

Try WireGuard if a standard connection isn't working

Even outside heavily censored countries, some protocols work more reliably than others. If a standard connection is failing, switch to WireGuard: it's faster and tends to get through restrictions that older protocols can't.

  • NordVPN: Settings > Connection > VPN Protocol > NordLynx
  • ExpressVPN: Preferences > Protocol > Lightway UDP

Our guide on changing your VPN protocol covers the steps for all major apps.

Check your split tunnelling settings

Some VPN apps let you choose which apps go through the VPN and which don't. If you have this set up, check that X isn't on the bypass list. It's a more common cause than you'd expect: the VPN looks on but X is quietly bypassing it.

Look for Split Tunnelling or App Exclusions in your VPN settings and make sure X isn't listed as an app that bypasses the VPN.

Clear the X app cache

If X was used on this device before you turned the VPN on, it may have saved your location and still be using it. On Android, go to Settings > Apps > X > Clear Cache. On iPhone, go to Settings > General > iPhone Storage, find X, and tap Offload App: this clears cached data without removing your login. If that doesn't fix it, delete and reinstall the app, then connect your VPN before opening X again.

Check your VPN is actually working

If X is still blocked with your VPN on, use our IP address checker to confirm it's working. If it shows a location in an unrestricted country, your VPN is connected correctly and something else is causing the block: likely saved location data or the wrong protocol. If it shows your real location, switch to a different server and try again.

What you can use X with a VPN for

The most common reasons people use a VPN with X are accessing it on restricted school or work networks, keeping their browsing private on public wi-fi, and staying connected when travelling to countries where X is blocked or restricted.

A VPN hides the fact that you're using X from the network you're on. X's own features work exactly the same with a VPN active. And no, X doesn't ban accounts for VPN use: it may occasionally ask you to verify your login if it sees an IP from an unexpected country, but that's a standard security check rather than a ban.