Solving "Overleaf Could Not Connect To Websocket Server" Error


Overleaf is a cloud-based service for writing, editing, and publishing scientific and other documents. It uses websocket server to communicate with the client. If the connection between the two cannot be established, the websocket server throws a “Could not connect to Overleaf websocket server” error. This error can be caused by many things, like outdated software version, incorrect settings, a proxy issue, etc. This document will help you understand the error better and provide an easy step-by-step system to troubleshoot the issue and potentially fix it.

Troubleshooting steps

Check your software version

To make sure the error isn’t caused by an outdated Overleaf version, go to the official Overleaf support page and check its latest version number. If you’re running an older version, simply update it. This could solve the websocket connection error.

Make sure you’ve enabled websockets

Websockets are necessary for Overleaf to have a properly working connection with its server. To make sure your configuration is up to date and the websocket connection is enabled, read the official Overleaf configuration documentation for more information.

Is it a proxy problem?

If the previous two steps haven’t solved your websocket connection issue, it might be a problem with your local proxy. Websockets can work with some proxy, but as of right now, they don’t always play nice with all configurations. If this will persists, try using a different proxy setup or contact Overleaf customer support for assistance.


What is a websocket server?

A websocket server is a server that allows the two-way-communication between a client and a server. It can be used to establish communication between different platforms, like web browsers and web servers.

What is the Overleaf websocket server?

The Overleaf websocket server is the communication interface between the Overleaf platform and its user's browsers. When a user tries to use the Overleaf platform, the websocket connection supports and delivers the data to be displayed.

What causes the Overleaf websocket server error?

This error is caused when the websocket connection between the Overleaf platform and the user's browser fails. It can occur due to outdated software, incorrect settings, or a problem with the local proxy.

How can I fix the Overleaf websocket server error?

The easiest way to fix this issue is to verify that you are running the latest version of Overleaf and that websockets are enabled in your Overleaf settings. If this doesn’t help, then you can try a different proxy setup or contact Overleaf customer support for help.

What are the benefits of using Overleaf?

Overleaf is a great tool for scientific documents, offering an easy-to-use editor and a variety of collaboration tools. It allows authors to create documents and share them with their project participants in just a few clicks, making it easier to work together remotely. Additionally, since it's cloud-based, you can access your documents from anywhere.


Websockets are important for Overleaf to establish and maintain a connection with its server. A failed connection between the two can cause the “Could not connect to Overleaf websocket server” error. To troubleshoot the problem and potentially fix it, check if you’re running the latest version of Overleaf, make sure websockets are enabled, and try a different proxy setup. If needed, contact Overleaf customer support for help.


Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.