Mainsail not connecting to the right IP adress when connecting via Tailscale

Basic Information:

Printer Model: Ender 3 Pro
MCU / Printerboard: Skr Mini E3 V3
Host / SBC: Gigabyte Brix Mini PC, Debian Bullseye x64
klippy.log

Describe your issue:

Hi all,

Klipper is working perfectly locally, but I would like to access my printer when I’m not in the workshop. That being said I set up tailscale and I can connect to the host via ssh and mainsail opens up, but it wont connect to moonraker. I have included the ip range in trusted_clients and cors_domains. When I connect to the host ip:7125 it say’s im authorized to use moonraker, so I presume that I have set it up correctly.
This being said mainsail tries to connect to the local IP of the host which ofcourse won’t work, How can I fix this?

Thanks in advance!

printer.cfg (5.2 KB)

moonraker.cfg (736 Bytes)

Welcome R4MP4G3RXD,

what is “tailscale”?

Tailscale develops an open-source software-defined mesh virtual private network and a web-based management service. The company provides a zero config VPN as a service under the same name.

Are your printer and device you use to connect both on the same subnet? It feels like Tailscale is overkill in this situation.

My workshop is far away and i’d like to monitor my printer remotely. It’s on a completely different network than what I have at home.

Hi cardoc,

thanks. Could you provide a link to tailscale?

Pro tip - If you click drag to mark a word or phrase, in most browsers, a right click gives you an option to "search for {marked text} at {your default search}.

@R4MP4G3RXD Did you try this approach GitHub - Novero95/klipper-ts · GitHub?
I never tried that and didn’t even know tailscale. What I read so far, I think this setup will work with your setup with your Gigabyte Brix Mini PC.

As much as it pains me to acknowledge YouTube as a source of reliable information it seems this guy has your solution.

As you can see from my moonraker.cfg file I have added my moonraker ip adress range as 100.0.0.0/8 (this range is everything from 100.0.0.0 to 100.255.255.255)

When the dude in the video enters the adress, mainsail tires to connect to that IP whereas mine wants to connect to 192.168.10.10 instead of 100.110.116.64 and that is my issue unfortunately.

Im fairly certain that everything would work if mainsail would use the ip adress that I input instead of the host machines local ip adress.

Yes that is how I set it up with the only difference being I added every adress in the 100.0.0.0 domain instead of adding them one by one, which works as you can see in the screenshot I have attached in my post.

Im pretty much sure the issue here is mainsail using the wrong IP adress.

Please see my reply above.

Summary

Yes I understand and that is in my eyes your problem. Mainsail just supports the “192.168.x.x” addresses.
@ Novero95, author of “klipper-ts” (see above) also uses that address room.

@ community, please correct me if this is buxlshxt!

…but I don’t think I would use tailscale. What about privacy?

From Tailscale VPN Review 2026: Keep in Mind Before Buying
This is especially concerning considering Tailscale is based in Canada, which is part of the 5 Eyes Alliance. Given that their location means it may have to share information with the government, I consider this a big privacy concern.

That is not the issue, as you can see in his github guide he did add the tailscale IP and was actively using it.

With the help of the all mighty AI that is ChatGPT we managed to figure out the issue which was missconfigured nginx for mainsail

The file is the following etc/nginx/sites-available/mainsail

Was modified to the file I have uploaded to the thread.

If anyone is having this issue after updating the nginx config run the following commands

sudo systemclt restart nginx
sudo systemctl restart moonraker

And then reload the mainsail website with Ctrl + Shift + R to clear everything from cache.

I will probably upload the nginx config to the guide as a response incase anyone has an issue like this.

Thanks for the help, friends!

mainsail nginx.cfg (3.0 KB)

I grew up on the internet, and I can say with all certainty that privacy online is just a myth - this being said, even if the company shares my data with the government they aren’t going to see more than what’s printing or that the printer is just idling.

While setting up a private VPN would have been an arguably better option but quite frankly I can’t be bothered to set it up just to see the camera on my printer.

This method is quick and simple (or should have been) and more than good enough for what I will use it for.