On this page

Summary: A VPN server is the remote machine at the far end of your VPN connection. Your VPN app sends traffic selected for the VPN through an encrypted tunnel to that server; the server removes the VPN-layer encryption, forwards the traffic toward websites and services, and relays their responses back to you. For this traffic, websites normally see a VPN exit IP address rather than yours. That makes the server both the point where your traffic leaves the protected tunnel and the point where your VPN provider can observe it. It is one component of the connection, not the app, the tunnel, the protocol, or the VPN service as a whole, and connecting to one does not by itself make you anonymous or secure.

VPN Advisors is an independent, affiliate-supported website that explains how VPNs work, what they protect, and how to evaluate VPN services. This article explains the role of a VPN server, including how it receives tunneled traffic, forwards it to websites, and affects the IP address destinations see. For a broader look at VPN traffic routing and encryption, see our How Does a VPN Work? guide.

Where the VPN server sits in a connection

In an ordinary consumer VPN connection, your traffic passes through four stages:

  1. Your device and VPN app. The app encrypts the traffic that your device routes into the VPN and sends it to the server. In the example client configuration on the WireGuard project site, a device set to route every address through its one peer, the server, sends all of its traffic there.
  2. The tunnel across your local network and ISP. The Wi-Fi network and internet provider still carry your data, but they see an encrypted connection to the VPN server rather than the sites you visit. The Electronic Frontier Foundation (EFF) notes that this hides outgoing traffic from your ISP and from the operator of the local network, such as a café or hotel.
  3. The VPN server. The server removes the VPN encryption from the traffic and sends it toward its real destination.
  4. The destination. The website or service receives the request from the server and replies to the server, which encrypts the response and sends it back through the tunnel to your device.

Technical guidance describes the same arrangement. NIST’s Guide to IPsec VPNs (SP 800-77 Rev. 1) calls it the remote access, or host-to-gateway, architecture: each user’s device builds a VPN connection to a gateway, and the gateway passes decrypted traffic onward. NIST is explicit that this model does not protect data for the whole trip; the leg between the gateway and the destination is not covered by the VPN. NIST is writing about organizational deployments, but consumer VPNs follow the same pattern, since the tunnel runs from your device to the VPN server and the traffic then continues to its destination from there.

What a VPN server does

In a typical encrypted consumer VPN, the server performs four main functions.

It ends the encrypted tunnel

The server is the other endpoint of the encrypted connection. It holds the keys needed to remove the VPN encryption from your traffic, and it checks that the device connecting to it is allowed to. NIST notes that a VPN gateway typically requires the user to authenticate before the connection is established, either handling that check itself or consulting a separate authentication server. WireGuard works differently but toward the same end: the server accepts traffic only from devices whose public keys it has been configured with, and only from the tunnel addresses assigned to each of them.

It forwards your traffic and relays the replies

After removing the VPN encryption from a request, the server sends it to the website or service it was meant for and carries the response back to you. The Federal Trade Commission describes this simply: with a VPN app, data from your device is first routed through servers the VPN provider controls.

It supplies the IP address destinations see

When the server forwards traffic onto the internet, websites typically see a VPN exit IP address instead of the public address of your home or mobile connection. EFF describes the usual effect as making you appear to connect from the VPN server’s location. With a virtual location, the IP address’s advertised country can differ from where the server hardware sits. That is the mechanism behind a VPN “changing your IP address.” The details of what changes and what doesn’t belong to a separate discussion; what matters here is that the address comes from the server side of the connection.

It becomes the new point of visibility

Traffic leaves the tunnel at the server, so whoever operates the server is in a position to see it. EFF states that browsing data hidden from your ISP is visible to the VPN provider. Encryption between your device and the destination still applies: when you visit an HTTPS site, EFF explains, observers along the path can usually see the domain name, timing, and data sizes, but not the specific pages, your login name, or the messages you send. A VPN moves that metadata view away from the local network and ISP and gives it to the VPN provider instead.

How the VPN server differs from the app, tunnel, protocol, and service

These terms are often used interchangeably, which leads to claims that credit the server with things other parts of the system do. The distinctions are below.

How the VPN server differs from the app, tunnel, protocol, and service
Term What it is How it relates to the VPN server
VPN app (client) Software on your device that starts the connection, encrypts VPN-bound traffic, and manages settings that influence which traffic enters the tunnel. It initiates the connection to the server and stores the server’s address. Choices such as split tunneling are applied through the client’s routing rules, sometimes using settings supplied by the VPN server.
VPN tunnel The path carrying tunneled packets between your device and the server, ordinarily encrypted in consumer VPNs. It is a connection, not a machine. The server is one end of the tunnel. Once traffic leaves the server, it is outside the tunnel.
VPN protocol The rules both ends follow to set up and protect the connection, including authentication and encryption where provided, such as IPsec with IKEv2, OpenVPN, or WireGuard. The server must run a protocol the app also supports. The protocol shapes how the server authenticates you and protects the tunnel.
VPN service (provider) The business that operates the servers and apps and sets the account terms, privacy policy, and logging practices. The provider runs the server. Promises about logging, data sharing, and legal requests are commitments of the service, not properties of a server.
Server network and locations The provider’s full set of servers, presented in the app under location labels. A location is a label the provider assigns. As explained below, it may not describe where the hardware physically sits.

The practical consequence: a statement such as “the server hides your identity” bundles together several separate things. The server supplies a different IP address. Whether your activity stays private depends on the provider’s practices, the protocol in use, and how the app is configured.

Server, gateway, endpoint, peer: terms that don’t always line up

Different sources describe the same role with different words, and some familiar words mean something narrower than they appear to.

  • Gateway. NIST and other enterprise documentation call this role a VPN gateway. NIST notes that a gateway may be a dedicated device or a function built into a firewall or router. In a consumer context, “VPN server” and “VPN gateway” describe the same position in the connection.
  • Peer. WireGuard treats both sides of a tunnel as peers, each identified by a public key. The “server” is the peer configured to accept connections from many clients, and according to the WireGuard documentation it learns each client’s current address from where authenticated traffic arrives rather than from a preset list.
  • Endpoint. In WireGuard, an endpoint is the IP address and UDP port where a peer can be reached. NIST uses “IPsec endpoint” for either side of a connection. A “server endpoint” in a configuration file is an address, not a machine or a location.
  • Node and location. These words come from provider apps and marketing rather than from protocol standards, so their meaning depends on how a given provider defines them.

What varies from one provider to another

Some aspects of a VPN server are stable at the category level. Others depend on how a particular provider builds its network.

Physical and virtual locations

A location label in a VPN app does not always reflect where the server physically is. Several providers’ own support documentation describes “virtual locations,” in which you receive an IP address registered to the country you selected while the server itself sits in another, often nearby, country. ExpressVPN gives the example of Indonesian IP addresses served from hardware in Singapore. Websites can then treat your connection as coming from the labeled country. The label alone therefore doesn’t establish where the hardware is or, by extension, whose laws apply to it. EFF notes that a provider is subject to the laws of the countries where it does business.

Single-server and multi-hop routing

A standard connection uses one server. Some services offer multi-hop routing, in which traffic passes through an entry server and then an exit server. In one provider’s description, your ISP sees the connection to the entry server, while websites see the exit server’s IP address. Implementations differ: some build a second tunnel on the client device, others have the entry server forward traffic to the exit server on your behalf. In these setups, “the VPN server” is really two machines with different jobs.

Protocol, implementation, and data handling

How a server authenticates connections and encrypts the tunnel depends on the protocol and on the provider’s implementation of it; EFF notes, for example, that providers may run their own implementations of WireGuard. What a server records, how long records are kept, and when they are shared are set by the provider’s policies and legal obligations. EFF cautions that a no-logging claim is a claim to verify, not a guarantee.

What a VPN server can’t do on its own

Because the server sits in such a visible place in the connection, it is easy to overstate what it accomplishes.

  • It doesn’t make you anonymous. The FTC notes that a VPN app generally won’t make you anonymous, that sites may be able to tell you are using a VPN, and that anything identifying you share with them can still be used to track you. EFF adds that cookies, tracking pixels, fingerprinting, and GPS work regardless of which IP address a site sees.
  • It moves trust rather than removing it. The FTC describes a VPN as shifting trust from your ISP or Wi-Fi network to the VPN provider. In its 2024 mobile communications guidance for highly targeted individuals, the Cybersecurity and Infrastructure Security Agency (CISA) advised against personal VPNs on the grounds that they move residual risk from the ISP to the VPN provider and can increase the attack surface.
  • It doesn’t guarantee the tunnel is well protected. The FTC warns that some VPN apps use protocols that don’t encrypt traffic, or encrypt only part of it. The strength of the connection to the server depends on the app and protocol, not on the existence of a server.