Skip to content

RDPArticle

RDP vs VNC and Which Remote Desktop Protocol to Use

  • Updated
  • 13 min read
  • VPS Lane Engineering
Short answer

RDP gives you a remote login session and suits Windows. VNC shows and controls a screen as pixels and suits mixed systems.

How we tested this

Port, banner, nmap and security handshake checks run on Ubuntu 24.04.5 LTS with TigerVNC 1.13.1, xrdp 0.9.24, nmap 7.94 and OpenBSD netcat 1.226. Windows Remote Desktop was not tested here and follows the Microsoft documentation listed under Sources. No bandwidth or latency figures were measured.

RDP vs VNC at a Glance

RDP vs VNC at a glance comes down to one idea, RDP describes a desktop session and VNC copies the pixels of a screen.

This comparison covers RDP as hosted by Windows 10 and 11 Pro, Enterprise and Education and by Windows Server, RDP as served on Linux by xrdp, and VNC servers that speak RFB 3.8 such as TigerVNC. Commercial VNC products add their own sign in and encryption layers on top, and those are outside its scope.

RDP and VNC side by side
PointRDPVNC
ProtocolRemote Desktop Protocol, published by MicrosoftRFB, the remote framebuffer protocol in RFC 6143
What travelsGraphics display information, cached bitmaps and extra channelsRectangles of pixel data from a framebuffer
Default portTCP 3389, plus optional UDP 3389 on WindowsTCP 5900 plus the display number
Who speaks firstThe clientThe server, with a version line
Sign inAn operating system account, and NLA can authenticate the user before the session is created when it is enabledServer selected authentication, often a VNC password
EncryptionTLS, with CredSSP for Network Level Authentication when negotiatedNone in base RFB, TLS in servers that add it
SessionsA login session per user, with several at once on Windows Server with RD Session HostAn existing desktop shared by viewers or a separate virtual desktop, depending on the server
Beyond the screenClipboard, audio, printers and drives per MicrosoftKeyboard, pointer and clipboard text in the RFC
Usual fitDaily work on WindowsShared screens, consoles and mixed systems

The Windows editions are not equal as hosts. Windows 10 and 11 Pro, Enterprise and Education accept incoming Remote Desktop connections and generally allow one interactive user at a time. The Windows Enterprise multi-session editions are an exception that supports concurrent sessions, and Microsoft licenses them only for Azure Virtual Desktop. Windows Server with the RD Session Host role is the conventional option when several users need independent desktops at once.

The rest of this guide shows where each row comes from, with output from a real TigerVNC server and a real xrdp server where a claim can be tested.

How RDP and VNC Send the Screen

RDP and VNC send the screen in different ways, and that one difference explains most of how each feels in use.

How VNC Sends the Screen With RFB

VNC sends the screen with RFB, the remote framebuffer protocol in RFC 6143, as rectangles of pixel data.

The viewer asks with a FramebufferUpdateRequest and the server answers with a set of rectangles. RFC 6143 calls this demand driven, because the server sends an update only in response to a request. When the request is marked incremental, the server sends only the areas that changed. The common claim that VNC resends the whole screen each time is therefore wrong for any normal viewer.

Each rectangle is packed with an encoding. The RFC defines Raw, CopyRect, RRE, Hextile, TRLE and ZRLE, and it marks RRE and Hextile as obsolescent because ZRLE and TRLE are more compact. The IANA registry also lists Tight, which TigerVNC and several other servers support. Raw is uncompressed, so the encoding the viewer and server agree on matters a great deal for traffic.

Because RFB works at the framebuffer level, the RFC notes that it applies to all windowing systems and applications. The server needs no knowledge of what drew the pixels.

How RDP Sends the Screen

RDP sends the screen as graphics display information that the server builds into network packets.

The Microsoft overview of the classic design describes the client as interpreting those packets into the matching Windows graphics calls. To cut traffic, the same documentation lists data compression, a persistent bitmap cache and caching of glyphs and fragments in memory. Later protocol versions add a graphics pipeline extension, in which display data is encoded on the server and decoded by a compatible client. So modern RDP is not only drawing commands, and how a given session is encoded depends on the Windows version, the client and the settings both sides agree on.

RDP is also a multiple channel protocol. The Microsoft overview describes support for up to 64,000 separate channels, and the specification allows up to 31 static virtual channels to be created when a connection starts. Channels like these are how the clipboard, printers, sound and local drives travel next to the picture.

What the Difference Means in Practice

The difference in practice is that RDP knows about the session while VNC only knows about the picture.

A VNC server can sit in front of nearly anything that has a framebuffer, which is why it turns up on Linux desktops, small boards and virtual machine consoles. RDP needs a server that implements the protocol, such as Windows or xrdp, and in return it can carry far more than pixels.

Default Ports for RDP and VNC

The default ports are TCP 3389 for RDP and TCP 5900 for VNC, with one extra rule on each side.

For VNC the rule is the display number. The TigerVNC manual gives the default as 5900 plus the display number, so display 1 is 5901. RFC 6143 lists 5900 as the registered port and notes that server N typically listens on 5900 plus N. That makes it a convention followed by TigerVNC and many other servers, and a server can be set to any port. The RFC also mentions 5800 for a web viewer on some servers and 5500 for reverse connections. For RDP, Microsoft lists TCP and UDP 3389 as the standard port, and it can be changed on the host and the client, as shown in our guide on how to change the RDP port.

To see the rule on a live machine, we started TigerVNC 1.13.1 on Ubuntu 24.04.5 as display 61, a second copy as display 62 limited to localhost, and xrdp 0.9.24 from a copy of its configuration set to port 23389. The xrdp port was moved only because 3389 was already taken on the test machine. The output below is trimmed to those three listeners.

bash
ss -tlnp | grep -E 'Xtigervnc|xrdp'
Output
LISTEN 0      5          127.0.0.1:5962       0.0.0.0:*    users:(("Xtigervnc",pid=20664,fd=9))
LISTEN 0      2            0.0.0.0:23389      0.0.0.0:*    users:(("xrdp",pid=20665,fd=10))
LISTEN 0      5            0.0.0.0:5961       0.0.0.0:*    users:(("Xtigervnc",pid=20663,fd=9))

Display 61 landed on 5961 and display 62 on 5962, bound to 127.0.0.1 because of the localhost option. The address 0.0.0.0 means every IPv4 interface. The test machine had no IPv6, so no IPv6 lines appear. Both servers can listen on IPv6 where the host has it, so check for [::] lines on your own system.

UDP needs its own check. Running ss -ulnp on the same machine showed no UDP listener for xrdp 0.9.24 or for TigerVNC. Windows is different, since Microsoft lists UDP 3389 next to TCP for Remote Desktop.

What nmap Reports for Each Service

With the version flag, nmap reports each service from its reply and not from the port number.

The server address in the commands below, 203.0.113.10, is a documentation example that stands in for the test machine. Replace it with your own.

bash
nmap -Pn -sV -p 5961,23389 203.0.113.10
Output
PORT      STATE SERVICE       VERSION
5961/tcp  open  vnc           VNC (protocol 3.8)
23389/tcp open  ms-wbt-server xrdp

Neither port is a default, yet nmap named both services and even the VNC protocol version. A custom port cuts noise from scanners that only try 3389 or 5900. It does not hide what is listening from a scan that includes the port.

What Each Server Sends on Connect

On connect a VNC server sends its version line first, while an RDP server sends nothing until the client speaks.

Netcat shows it without any client software. The first command prints the first 12 bytes from the VNC port. The second counts the bytes the RDP port sends in three seconds.

bash
nc -w 2 203.0.113.10 5961 < /dev/null | head -c 12
nc -w 3 203.0.113.10 23389 < /dev/null | wc -c
Output
RFB 003.008
0

The 12 byte line is the ProtocolVersion message from RFC 6143, and 3.8 is the newest version that the RFC documents. The RDP listener stayed silent because an RDP connection begins with a request from the client. That is why a simple banner grab identifies VNC at once, while RDP needs a probe that speaks first, as nmap did above.

Security Defaults in RDP and VNC

The security defaults differ most, as RDP can use TLS and CredSSP for NLA, while classic VNC sign in often uses one short password.

VNC Security Types on a Default TigerVNC Server

The security types a default TigerVNC 1.13.1 server offered in this test were VeNCrypt and VNC Authentication.

After the version line, an RFB 3.8 server sends a count followed by one byte per security type. Echoing the version back with netcat is enough to see the list, and no password is sent.

bash
(sleep 1; printf 'RFB 003.008\n'; sleep 1) | nc -w 3 203.0.113.10 5961 | od -An -c
Output
   R   F   B       0   0   3   .   0   0   8  \n 002 023 002

The three bytes after the banner are in octal. 002 is the count, 023 is type 19, which the IANA registry names VeNCrypt, and the last 002 is type 2, VNC Authentication. That matches the default of TLSVnc,VncAuth in the TigerVNC manual. The second server, started with -SecurityTypes None, answered 001 001, meaning one type, None. Anyone who can reach such a port gets the desktop without a password.

VNC Authentication is weak by design. RFC 6143 describes a 16 byte challenge encrypted with DES, with the password cut to eight characters, and calls the scheme cryptographically weak and not intended for untrusted networks. The RFC adds that RFB itself gives no protection against someone observing or changing the data stream, and it points to SSH or IPsec for that.

The TLS types that TigerVNC adds do encrypt the session. TLSVnc uses anonymous TLS, so it protects against passive listening but does not prove which server you reached. The X509 types use a certificate for that. Which type a session ends up with depends on the viewer, so a viewer that only knows type 2 still gets the weak one unless you remove it from the list.

A Lockout You Can Trip While Testing

A lockout is easy to trip while testing, because TigerVNC blocks an address after repeated unauthenticated connections.

After a handful of the probes above, the server changed its answer. The banner became RFB 003.003, followed by the text Too many security failures, and nmap reported the port like this.

bash
nmap -Pn -sV -p 5961 203.0.113.10
Output
5961/tcp open  vnc     VNC (protocol 3.3; Locked out)

The TigerVNC manual documents this as UseBlacklist, on by default, with a threshold of 5 attempts and a first timeout of 10 seconds. In our test the server accepted the address again after a wait of about 12 seconds. The feature slows password guessing from one address. It does not stop guessing spread over many addresses, and it is no substitute for a firewall.

RDP Security Negotiation on xrdp and Windows

RDP security negotiation starts in the first packet, where the client lists the protocols it supports.

The Microsoft specification defines the flags. Value 0 is Standard RDP Security, 1 is TLS and 2 is CredSSP, the protocol behind Network Level Authentication (NLA). The command below sends one negotiation request that offers TLS and CredSSP together, the \x03 near the end, and prints the reply in hex. No user name or password is sent.

bash
printf '\x03\x00\x00\x13\x0e\xe0\x00\x00\x00\x00\x00\x01\x00\x08\x00\x03\x00\x00\x00' | nc -w 3 203.0.113.10 23389 | od -An -tx1
Output
 03 00 00 13 0e d0 00 00 12 34 00 02 01 08 00 01
 00 00 00

Byte 12, 02, marks a negotiation response, and the last four bytes, 01 00 00 00, are the protocol the server selected, TLS. So xrdp 0.9.24 with its stock setting security_layer=negotiate chose TLS and did not select CredSSP, even though the request offered it. Repeating the request with the offer byte set to \x00 returned a selected value of 00 00 00 00. The stock configuration therefore still accepts Standard RDP Security. Microsoft documents that older layer in its specification with RC4 session keys of 40, 56 or 128 bits, depending on the negotiated method and the server settings. Its FIPS encryption level uses FIPS 140-1 validated methods instead. These are legacy mechanisms and should not be preferred over TLS.

Windows was not tested here. Microsoft recommends keeping NLA enabled for most environments, since the user is authenticated before a session is set up. Per the specification, a server that requires CredSSP answers a client that did not offer it with failure code 5, HYBRID_REQUIRED_BY_SERVER, in place of a session.

Security defaults by server and where each result comes from
ServerOffered by defaultListens onBasis
TigerVNC 1.13.1 run as XtigervncVeNCrypt with TLSVnc, then VNC AuthenticationEvery interfaceTested
TigerVNC through the tigervncserver wrapper on Ubuntu 24.04VNC AuthenticationLocalhost onlyRead from its defaults file
xrdp 0.9.24 with the stock configurationTLS when the client offers it, Standard RDP Security otherwiseEvery interfaceTested
Windows Remote DesktopTLS, with CredSSP for NLA when enabled, and Microsoft recommends NLADepends on firewall rulesDocumentation only

Sessions and Features Beyond the Screen

Sessions and features beyond the screen are where RDP does more, because it carries extra channels next to the picture.

Microsoft lists clipboard mapping, print redirection, audio, local drives and smart card sign in among the RDP features. It also documents roaming disconnect, where you disconnect without logging off and pick the same session up later from another device.

How many people can work at once depends on the Windows side and not on RDP itself. Windows 10 and 11 generally allow one interactive user at a time, apart from the Enterprise multi-session editions in Azure Virtual Desktop. Windows Server can host several independent sessions through the RD Session Host role, and Microsoft requires a Remote Desktop Services client access license for each user or device that connects to a session host. Plan for that cost if a team will share one server.

RFC 6143 defines keyboard events, pointer events and clipboard text for RFB, and nothing for sound or printing. Individual VNC products add file transfer or audio in their own ways, so check the server and viewer you plan to pair.

VNC carries framebuffer updates, and the server decides whose screen that is. In TigerVNC, Xvnc creates a separate virtual desktop for each display number, while x0vncserver shares an X display that already exists, typically the one on the physical screen. So VNC can give each user a desktop of their own or put several people on one.

Sharing is the part RDP does not match as simply. The viewer sends a shared flag when it connects, and in TigerVNC a new connection that is not shared disconnects the viewers already there by default. Viewers that ask for a shared session all watch and control the same desktop, which is what makes VNC useful for support and teaching.

One limit applies on the Windows side. Microsoft states that Windows Home editions cannot host Remote Desktop, although they can connect out as clients.

RDP vs VNC Speed and Bandwidth

RDP vs VNC speed and bandwidth depend on the server, the encoding and the screen content more than on the protocol name.

We publish no bandwidth or latency figures here. A loopback test between xrdp and TigerVNC on one Linux machine would not represent Windows RDP over a real link, so any number from it would mislead.

What the documentation supports is narrower. RDP caches bitmaps and glyphs and compresses its data, which tends to help text heavy office work, where much of the screen repeats. VNC traffic grows with the area of pixels that change, softened by encodings such as ZRLE or Tight and made worse by Raw. Full screen video is heavy on both.

If the choice matters, test both on your own link with the work you actually do. Compare how typing and scrolling feel, and read the traffic counters of the client or the network interface during the same task.

Which Remote Desktop Protocol to Use

Which remote desktop protocol to use depends on the machine you are reaching and what you need besides the picture.

RDP or VNC by use case
Use caseUsual choiceReason
Daily work on a Windows server or Windows VPSRDPBuilt in, a login session of your own, NLA, clipboard and drives
Several people who each need a Windows desktop on one serverRDPWindows Server with RD Session Host and the matching licenses
A Linux desktop for one userEitherxrdp serves RDP clients, and VNC works well through an SSH tunnel
Helping someone on the screen they are looking atVNCA server that shares the existing desktop lets several viewers see and control it
A virtual machine console or a device with no desktop login yetVNCRFB works at the framebuffer level and needs little from the system behind it
Office work that needs printing, sound or local drivesRDPThose travel in RDP channels and are not part of RFB
Remote access across different server operating systemsVNCRFB has independent server implementations for Windows, Linux and other platforms
Direct exposure to the internetNeither as it standsPut a VPN, an SSH tunnel or a gateway in front and limit source addresses

These are starting points, not rules. RDP clients exist for Windows, macOS, Linux and phones, a Linux server with xrdp can serve them, and a Windows machine can run a VNC server when screen sharing is the goal.

If your answer is a Windows desktop you reach over RDP, a hosted Windows RDP server gives you full administrator access, so the port, the firewall and the NLA setting stay under your control.

Check Either Protocol Before You Expose It

Check either protocol from outside before you expose it, because a default install may offer more than you expect.

Run the checks from this guide in order. List listeners with ss -tlnp and ss -ulnp on the server, and look for both IPv4 and IPv6 lines. Scan the ports from another machine with nmap -Pn -sV. Then read the VNC security types and the RDP negotiation reply as shown above.

Tighten the Offer on Linux

To tighten the offer on Linux, remove the weak option on each server and repeat the same check.

Before you edit anything, copy the file, for example cp /etc/xrdp/xrdp.ini /root/xrdp.ini.bak, and keep a console or SSH session open that does not depend on the service you are changing. If a client can no longer connect, copy the file back and restart the service.

In our test, a TigerVNC server started with -SecurityTypes TLSVnc answered 001 023, one type, VeNCrypt, so plain VNC Authentication was gone. A copy of the xrdp configuration with security_layer=tls gave this reply to the request that offers no TLS, the one ending in \x00\x00\x00\x00.

Output
 03 00 00 13 0e d0 00 00 12 34 00 03 00 08 00 01
 00 00 00 03 00 00 09 02 f0 80 21 80

Byte 12 is now 03, a negotiation failure, and the code that follows is 1, SSL_REQUIRED_BY_SERVER. The trailing bytes are a disconnect. A client that offers TLS still received the normal response selecting TLS. Older clients that cannot use TLS will stop working after this change, which is the reason for the backup.

A passing check proves only what the server offers on the port you tested from the place you tested. It says nothing about password strength, missing updates, or what a firewall allows from other networks.

Reading odd results from these checks
What you seeLikely causeWhat to do
Connection refused on 5900The VNC server runs on another displayAdd the display number to 5900 and confirm with ss -tlnp
VNC works on the server but not from outsideThe server is bound to 127.0.0.1Use an SSH tunnel, or change the localhost setting on purpose
Banner reads RFB 003.003 with a security failures messageYour address is on the TigerVNC blacklistStop probing and wait for the timeout
No bytes from the RDP port with netcatNormal, RDP waits for the clientProbe with nmap -sV or the negotiation request
RDP reply ends in 00 00 00 00 for the plain requestStandard RDP Security is still acceptedSet security_layer=tls in xrdp after a backup
nmap names the service on a custom portVersion detection reads the replyTreat a custom port as noise reduction only

Questions people ask

Is RDP faster than VNC?

Often for office work on Windows, but not as a rule. RDP caches and compresses screen data, while VNC speed depends heavily on the encoding and on how much of the screen changes.

Is VNC more secure than RDP?

Not by default. Classic VNC Authentication uses a password cut to eight characters, and base RFB has no encryption. RDP can negotiate TLS for transport security, while CredSSP provides Network Level Authentication when enabled. Both need a firewall or tunnel in front.

What port does VNC use compared with RDP?

VNC uses TCP 5900 plus the display number, so display 1 is 5901. RDP uses TCP 3389, and Windows can add UDP 3389 as a second transport.

Can I use RDP to connect to a Linux machine?

Yes, if the Linux machine runs an RDP server such as xrdp. In our test xrdp 0.9.24 answered as RDP and selected TLS when the client offered it.

Is a VNC connection encrypted?

Only if the server and viewer agree on a type that adds it. Base RFB is not encrypted. TigerVNC offers TLS types, or you can carry VNC inside an SSH tunnel.

Can two people see the same screen with RDP or VNC?

VNC handles it well when the server shares one desktop and viewers connect as shared. RDP normally gives each user a separate login session.

Should I open RDP or VNC directly to the internet?

It is safer not to. Place a VPN, an SSH tunnel or a gateway in front, limit the firewall to known addresses and keep the server updated.

Sources

  1. RFC 6143, The Remote Framebuffer Protocol
  2. IANA, Remote Framebuffer (RFB) registries for security types and encodings
  3. TigerVNC, Xvnc manual
  4. Microsoft Learn, Remote Desktop Protocol
  5. Microsoft Learn, MS-RDPEGFX Remote Desktop Protocol Graphics Pipeline Extension
  6. Microsoft Learn, MS-RDPBCGR RDP Negotiation Request
  7. Microsoft Learn, MS-RDPBCGR RDP Negotiation Failure
  8. Microsoft Learn, Enable Remote Desktop on your PC
  9. Microsoft Learn, Ports that are used by Remote Desktop Services

Written and tested by VPS Lane EngineeringWe run every step on real servers before publishing and update the article when the software changes.