# Mainsail won't connect

**URL:** <https://klipper.discourse.group/t/mainsail-wont-connect/13558>\
**Category:** Mainsail\
**Created:** [January 27, 2024, 8:49pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558 "2024-01-27T20:49:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![3dcoded](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/3dcoded/32/20297_2.png) [@3dcoded](https://klipper.discourse.group/u/3dcoded)\
**Post date:** [January 27, 2024, 8:49pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558/1 "2024-01-27T20:49:03Z")

</div>

Hi,  
For a while I have been using Mainsail for my Klipper setup on my Prusa MK3S+. Whenever I try to open it now, however, it just shows “Connecting…” Fluidd still works. When I look at the console, I see:

 ![Screenshot 2024-01-27 at 3.43.49 PM](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/5/5a4f446631b19a03653c8c40133952e858963dac.png)

Any help would be appreciated.

P.S. The “klipper.os” is my local DNS name for my RPi’s IP. I’m using Pi-Hole on a different Pi.

---

<div class="post-metadata">

**Author:** ![meteyou](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/meteyou/32/15362_2.png) [@meteyou](https://klipper.discourse.group/u/meteyou)\
**Post date:** [February 3, 2024, 4:43pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558/2 "2024-02-03T16:43:06Z")

</div>

pls doublecheck your moonraker.log and doublecheck to open it via ip address.

---

<div class="post-metadata">

**Author:** ![3dcoded](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/3dcoded/32/20297_2.png) [@3dcoded](https://klipper.discourse.group/u/3dcoded)\
**Post date:** [February 4, 2024, 12:48pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558/3 "2024-02-04T12:48:46Z")

</div>

Here is my `moonraker.log` while Mainsail is trying to connect: [http://paste.c-net.org/4xy09gtbxmax](http://paste.c-net.org/4xy09gtbxmax)  
Here is my `moonraker.log` when Fluidd is successfully running: [http://paste.c-net.org/wnenyt41zqbc](http://paste.c-net.org/wnenyt41zqbc) (the last few lines are the only related to Fluidd. The previous lines are about Mainsail failing)  
When I open the websocket url in a browser, it gives me the standard “Upgrade to Websocket” message. So that is working.

Any ideas?

---

<div class="post-metadata">

**Author:** ![3dcoded](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/3dcoded/32/20297_2.png) [@3dcoded](https://klipper.discourse.group/u/3dcoded)\
**Post date:** [February 18, 2024, 6:36pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558/4 "2024-02-18T18:36:10Z")

</div>

I am still having this issue. Using my.mainsail.xyz also fails to connect. Any ideas?

---

<div class="post-metadata">

**Author:** ![hcet14](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@hcet14](https://klipper.discourse.group/u/hcet14)\
**Post date:** [February 18, 2024, 7:45pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558/5 "2024-02-18T19:45:10Z")

</div>

> [@3dcoded](#):
>
> Here is my `moonraker.log` while Mainsail is trying to connect: [http://paste.c-net.org/4xy09gtbxmax](http://paste.c-net.org/4xy09gtbxmax)  
> Here is my `moonraker.log` when Fluidd is successfully running: [http://paste.c-net.org/wnenyt41zqbc](http://paste.c-net.org/wnenyt41zqbc)

First thing I recognized in both logs

`Klipper Version: v0.12.0-102-g9f41f53c-dirty`

You may have a look here [https://klipper.discourse.group/t/how-to-trouble-shoot](https://klipper.discourse.group/t/how-to-trouble-shoot) and fix that first.

Most important! Always post an actual klippy.log!

Good luck, hcet14

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [February 18, 2024, 7:48pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558/6 "2024-02-18T19:48:01Z")

</div>

> [@3dcoded](#):
>
> P.S. The “klipper.os” is my local DNS name for my RPi’s IP. I’m using Pi-Hole on a different Pi.

Try using the IP address of the Klipper SBC instead of `klipper.os`

---

<div class="post-metadata">

**Author:** ![3dcoded](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/3dcoded/32/20297_2.png) [@3dcoded](https://klipper.discourse.group/u/3dcoded)\
**Post date:** [April 1, 2024, 7:49pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558/7 "2024-04-01T19:49:39Z")

</div>

Using the IP of the Klipper SBC still doesn’t work. Here’s the logs when this occurs:  
`klippy.log`: [http://paste.c-net.org/y1p9vmboil0s](http://paste.c-net.org/y1p9vmboil0s)  
`moonraker.log`: [http://paste.c-net.org/vizfttfyewua](http://paste.c-net.org/vizfttfyewua)  
My klipper install is dirty due to `gcode_shell_command.py`, and a custom `3dchameleon.py`. However, this issue occurs without these files. On top of this, Mainsail works fine on my iPad, and Fluidd works fine on both my iPad and Mac.

This screenshot looks like it is constantly trying to upgrade the websocket protocol?

 ![Screenshot 2024-04-01 at 3.48.53 PM](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/d/d53c6cac2003ab14b6064530d46ca4e980e1b740.png)

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![3dcoded](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/3dcoded/32/20297_2.png) [@3dcoded](https://klipper.discourse.group/u/3dcoded)\
**Post date:** [May 10, 2024, 10:32pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558/8 "2024-05-10T22:32:57Z")

</div>

After reinstalling Mainsail and my VPN, I was able to get Mainsail connecting! Thank you to everyone who helped me.

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [August 7, 2025, 9:22pm UTC](https://klipper.discourse.group/t/mainsail-wont-connect/13558/9 "2025-08-07T21:22:55Z")

</div>


