mirror of
https://github.com/jetkvm/kvm.git
synced 2026-03-02 22:58:00 -05:00
Not connecting with Safari on macOS #30
Labels
No labels
component/keyboard-layout
component: cloud
component: device screen
component: extensions
component: hid/keyboard
component: hid/mouse
component: network
component: timesync
component: ui
component: updater
component: usb
component: usb/hid
component: usb/storage
component: video
component: webrtc
component: webserver
need-more-details
status: working-in-progress
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/kvm#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nevarro on GitHub (Jan 7, 2025).
The JetKVM display shows USB & HDMI connected. I can open the web UI via Safari, however "JetKVM Device" says "Connecting" and then changes to "Connection failed". When I try Firefox, I get an immediate connection and everything works fine.
I run mac OS 15.2 and Safari 18.2.
@Nevexo commented on GitHub (Jan 7, 2025):
Via Cloud access or by it's IP address?
@madsbacha commented on GitHub (Jan 7, 2025):
Might be that you have enabled Local Network Access for Firefox, but not Safari? Try going to System Settings -> Privacy & Security -> Local Network and check if Safari is allowed access:
https://support.apple.com/guide/mac-help/control-access-to-your-local-network-on-mac-mchla4f49138/mac
@Nevexo commented on GitHub (Jan 7, 2025):
Possibly, but I'd expect that to break the HTTP-side as well, unless they're trying to access it over the cloud.
@Nevarro commented on GitHub (Jan 7, 2025):
@Nevexo Local access only. I haven't activated cloud access.
@madsbacha Safari is not on that list at all (neither activated or deactivated). I guess, as Safari is a 1st party app, there's no need to allow local network connections. I can also access my home server WebUI without any problem and the JetKVM WebUI is loading fine as well. It's just that it then isn't establishing a connection to my JetKVM within the UI.
@koenkooi commented on GitHub (Jan 9, 2025):
Same here, MacOS 15.2, both with regular Safari as well as Safari developer preview:
@heymarkarana commented on GitHub (Jan 10, 2025):
No issues on my end connecting to 3 different jetKVMs with Safari.
macos 15.2
Safari 18.2
Computer 1: 2023 MBP 15" (with lid closed)
Computer 2: 2018 MacMini (headless)
Computer 3: 2021 Intel NUC (headless)
I have seen the video not start when connecting, but when i open the virtual keyboard and hit 'space', it wakes the computer up from sleep and the video signals starts right up. But I do have both JetKVM Devin and USB lit green with "Connected"
@Nevarro commented on GitHub (Jan 10, 2025):
@heymarkarana
Interesting. Does the team have a guess what causes this problem?
It's not that the server wasn't up or wasn't displaying anything. As I said before, Firefox works just fine and I don't do anything differently between Safari and Firefox.
Edit: I just tested it while being away from home, accessing the local JetKVM IP via VPN. Suddenly, it's working with Safari. I'll try again at home and will reply here.
@koenkooi commented on GitHub (Jan 10, 2025):
I've tried resetting HSTS by removing the plist and restarting Safari, but that made no difference. I've attached the logfile from Safari when setting WebRTC logging to 'basic':
webtrc-safari.log
@koenkooi commented on GitHub (Jan 10, 2025):
I think I've figured it out: Safari won't connect when I use 10G ethernet, which has jumbo frames (MTU=9000) enabled, but it does connect when I unplug the the ethernet cable and enable wifi (which can't have jumbo frames).
EDIT: Which is weird, because inspecting the non-working Safari connection over 10G ethernet shows MSS=1448, so MTU might be a red herring:
@Nevexo commented on GitHub (Jan 10, 2025):
I'd hope this isn't the cause, but I suppose it could be?
Are you able to get some pcaps of 10G vs Wi-Fi?
@Nevarro commented on GitHub (Jan 10, 2025):
That might be the case with me as well. I'm using MTU 1500 right now (working connection via VPN), my home mac, with which I tried to connect before, uses jumbo frames.
@Nevexo commented on GitHub (Jan 10, 2025):
I have successfully used the cloud mode all the way down to 1300 bytes, but haven't tried in the other direction, something to try!
@koenkooi commented on GitHub (Jan 10, 2025):
I won't have time to setup wireshark in the next few days, but I did run
sudo tcpdump -i enX dst 172.20.0.155for both wifi and ethernet:jetkvm-tcpdump-wifi.txt
jetkvm-tcpdump-ethernet.txt
Chrome does work over 10G ethernet using jumbo frames on the same machine, so I'm still not 100% convinced it's only jumbo frames that cause this.
@Nevarro commented on GitHub (Jan 10, 2025):
There must be a connection between Safari, jumbo frames and WebRTC/JetKVM WebUI. I think this combination might affect quite a lot of people with the same combination, as more people use 2.5 GBit/s connections or faster together with jumbo frames. And I wouldn't want to install or use certain browsers for an isolated use case.
@heymarkarana commented on GitHub (Jan 10, 2025):
Just an FYI. I did a quick test and switched my 10G connection to Jumbo frames (instead of automatic - 1500). I was able to connect to the linux and macOS machines. Please let me know if you need any further data from my configurations.
@heymarkarana commented on GitHub (Jan 10, 2025):
OK... so i ran into the issue this afternoon! I had to do a full power shutdown of my house (long story that's not relevant). After an hour, I turn power back on and had connectivity issues on the mac laptop (Sonoma 14.5). HDMI was connected but i no longer had access to USB. it showed in a disconnected state. I tried all kinds of trouble shooting. Finally, I took off the usb-c splitter and went directly to the mac usb port. I now could reliably see the JetKVM devise in my system information. no issues controlling it. Taking data and power from the mac laptop isn't a big deal for me. if the laptop runs out of juice for some reason, there's no point in me connecting to the KVM ;) (BTW... no issues with my Intel NUC and jetKVM after the power outage. Nor were there issues with my macMini (Sequoia 15.2) and JetKVM. I did try other usb-c splitters and still had issues.
@rinseaid commented on GitHub (Jan 12, 2025):
I also experienced the issue accessing JetKVM console from Safari. Firefox and Edge work fine. My network is heavily firewalled and segregated. I started troubleshooting with disabling and re-enabling my WireGuard VPN - and ended up consistently getting it working by allowing my client to access the JetKVM via UDP (this is blocked in my setup).
So I'm guessing that Safari doesn't fall back to TCP in the same manner as Firefox or Chromium browsers.My testing must have been flawed, I now can't reproduce Edge or Firefox working when UDP is blocked.I'm also unable to use the cloud console in any browser from any location, still trying to figure that one out.
@mattcurf commented on GitHub (Jan 13, 2025):
Reproduced failure to connect on Mac Safari with 10G connection with JUMBO frames enabled. Disconnected 10G connection and then was able to stream video.
@TheGurT commented on GitHub (Jan 28, 2025):
I have a similar issue, my HDMI keeps going to sleep and I cannot wake it to enable a remote cloud connection, I have to fysically click a mouse or keyboard button, the mouse jiggles is unsuccesfull in keeping the Mac awake, I am about to try the terminal function called Caffeinate, however this has other safety issues as your mac wil no longer lock.
@adamshiervani commented on GitHub (Mar 3, 2025):
Closing in favor of #84. Please resubmit your post there, so we can track everything in one place.