Not connecting with Safari on macOS #30

Closed
opened 2026-02-20 08:19:25 -05:00 by deekerman · 20 comments
Owner

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.

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.
deekerman 2026-02-20 08:19:25 -05:00
Author
Owner

@Nevexo commented on GitHub (Jan 7, 2025):

Via Cloud access or by it's IP address?

@Nevexo commented on GitHub (Jan 7, 2025): Via Cloud access or by it's IP address?
Author
Owner

@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

@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
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@koenkooi commented on GitHub (Jan 9, 2025):

Same here, MacOS 15.2, both with regular Safari as well as Safari developer preview:

jetkvm

@koenkooi commented on GitHub (Jan 9, 2025): Same here, MacOS 15.2, both with regular Safari as well as Safari developer preview: ![jetkvm](https://github.com/user-attachments/assets/d76e327a-afd5-4428-af9d-697aee680a2c)
Author
Owner

@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"

@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"
Author
Owner

@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.

@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.
Author
Owner

@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'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](https://github.com/user-attachments/files/18374590/webtrc-safari.log)
Author
Owner

@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:

Mac-Studio:~ koen$ lsof -i -n -Tf | grep -i mss | grep 155
com.apple 3792 koen  182u  IPv4 0xae5e2cf2d15f309f      0t0  TCP 172.20.0.56:51334->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4)
com.apple 3792 koen  186u  IPv4 0xe932ed6533d404e3      0t0  TCP 172.20.0.56:51335->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4)
com.apple 3792 koen  187u  IPv4 0xf253504214ef5aaa      0t0  TCP 172.20.0.56:51336->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4)
com.apple 3792 koen  188u  IPv4 0x71dc57bc645d31e7      0t0  TCP 172.20.0.56:51337->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1152832,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4)
com.apple 3792 koen  189u  IPv4 0x5983432de1bcc223      0t0  TCP 172.20.0.56:51338->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4)
com.apple 3792 koen  190u  IPv4 0x76031a9d8192bff0      0t0  TCP 172.20.0.56:51339->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4)
@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: ``` Mac-Studio:~ koen$ lsof -i -n -Tf | grep -i mss | grep 155 com.apple 3792 koen 182u IPv4 0xae5e2cf2d15f309f 0t0 TCP 172.20.0.56:51334->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4) com.apple 3792 koen 186u IPv4 0xe932ed6533d404e3 0t0 TCP 172.20.0.56:51335->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4) com.apple 3792 koen 187u IPv4 0xf253504214ef5aaa 0t0 TCP 172.20.0.56:51336->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4) com.apple 3792 koen 188u IPv4 0x71dc57bc645d31e7 0t0 TCP 172.20.0.56:51337->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1152832,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4) com.apple 3792 koen 189u IPv4 0x5983432de1bcc223 0t0 TCP 172.20.0.56:51338->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4) com.apple 3792 koen 190u IPv4 0x76031a9d8192bff0 0t0 TCP 172.20.0.56:51339->172.20.0.155:http (SO=PQLEN=0,QLEN=0,QLIM=0,RCVBUF=1048576,SNDBUF=1054144 SS=UNKNOWN=0x102 TF=MSS=1448,UNKNOWN=0x540203e4) ```
Author
Owner

@Nevexo commented on GitHub (Jan 10, 2025):

which has jumbo frames (MTU=9000) enabled

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?

@Nevexo commented on GitHub (Jan 10, 2025): > which has jumbo frames (MTU=9000) enabled 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?
Author
Owner

@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.

@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.
Author
Owner

@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!

@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!
Author
Owner

@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.155 for 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.

@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.155` for both wifi and ethernet: [jetkvm-tcpdump-wifi.txt](https://github.com/user-attachments/files/18375298/jetkvm-tcpdump-wifi.txt) [jetkvm-tcpdump-ethernet.txt](https://github.com/user-attachments/files/18375299/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.
Author
Owner

@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.

@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.
Author
Owner

@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): 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.
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@TheGurT commented on GitHub (Jan 28, 2025):

I'm also unable to use the cloud console in any browser from any location, still trying to figure that one out.

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.

@TheGurT commented on GitHub (Jan 28, 2025): > I'm also unable to use the cloud console in any browser from any location, still trying to figure that one out. 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.
Author
Owner

@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.

@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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/kvm#30
No description provided.