[GH-ISSUE #968] A couple of concerns #778

Open
opened 2026-05-05 07:05:55 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @JoPhiGURU on GitHub (Dec 4, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/968

Hello wizzards,
I am enthusiastic about this idea and the project. Unfortunately I can't find a discussion thread here on github, so I'm writing here.

I have a couple of concerns:
For a few hours now I've been trying out the last release for Raspberry Pi together with the last release for macOS. (I ignored all security warnings because I trust this project.) - It works great!

But I always have to think about what happens when my dynamic IP addresses change within the local network. I can't use manual settings because I have to share the network with others. Do I have to expect that I have to set the settings again and again, or can Barrier find or change the settings automatically in the background?

If Barrier doesn't automatically find the settings again, wouldn't it be a good idea to allow a device's hostname as well?

Thank you so much for this project! It helps me that I don't have to put 4 mice and 4 keyboards next to each other on the much too small table.

All the best for the future and for this genius project,
Johannes

Originally created by @JoPhiGURU on GitHub (Dec 4, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/968 Hello wizzards, I am enthusiastic about this idea and the project. Unfortunately I can't find a discussion thread here on github, so I'm writing here. I have a couple of concerns: For a few hours now I've been trying out the last release for Raspberry Pi together with the last release for macOS. (I ignored all security warnings because I trust this project.) - It works great! But I always have to think about what happens when my dynamic IP addresses change within the local network. I can't use manual settings because I have to share the network with others. Do I have to expect that I have to set the settings again and again, or can Barrier find or change the settings automatically in the background? If Barrier doesn't automatically find the settings again, wouldn't it be a good idea to allow a device's hostname as well? Thank you so much for this project! It helps me that I don't have to put 4 mice and 4 keyboards next to each other on the much too small table. All the best for the future and for this genius project, Johannes
Author
Owner

@CMaclellan commented on GitHub (Dec 5, 2020):

You can manually set your IP on your systems and you don't have to worry about anyone else on your LAN. If you can't get the DHCP range on your router just pick higher IPs for your PCs. ie. 192.168.2.200+ or whatever your LAN IPs are.

<!-- gh-comment-id:739087772 --> @CMaclellan commented on GitHub (Dec 5, 2020): You can manually set your IP on your systems and you don't have to worry about anyone else on your LAN. If you can't get the DHCP range on your router just pick higher IPs for your PCs. ie. 192.168.2.200+ or whatever your LAN IPs are.
Author
Owner

@JoPhiGURU commented on GitHub (Dec 5, 2020):

Thx, I'll try it. 😊

<!-- gh-comment-id:739111893 --> @JoPhiGURU commented on GitHub (Dec 5, 2020): Thx, I'll try it. 😊
Author
Owner

@JoPhiGURU commented on GitHub (Dec 5, 2020):

And when I'm on the way, I have to reconfigure all. Because of no hostname support. A pity, but ok.

<!-- gh-comment-id:739112293 --> @JoPhiGURU commented on GitHub (Dec 5, 2020): And when I'm on the way, I have to reconfigure all. Because of no hostname support. A pity, but ok.
Author
Owner

@JoPhiGURU commented on GitHub (Dec 5, 2020):

You can manually set your IP on your systems and you don't have to worry about anyone else on your LAN. If you can't get the DHCP range on your router just pick higher IPs for your PCs. ie. 192.168.2.200+ or whatever your LAN IPs are.

Now, it happened: I cannot use it. I'm not alllowed to set static IP-addresses. What else can I do now? My manual settings are not accepted by the router. No static range.

<!-- gh-comment-id:739258180 --> @JoPhiGURU commented on GitHub (Dec 5, 2020): > You can manually set your IP on your systems and you don't have to worry about anyone else on your LAN. If you can't get the DHCP range on your router just pick higher IPs for your PCs. ie. 192.168.2.200+ or whatever your LAN IPs are. Now, it happened: I cannot use it. I'm not alllowed to set static IP-addresses. What else can I do now? My manual settings are not accepted by the router. No static range.
Author
Owner

@shabbirh commented on GitHub (Dec 18, 2020):

Instead of using the IP Address, you can try to use a hostname (the hostname that your DHCP server is aware of; on most networks and operating systems (I use Barrier with Win10, Ubuntu20.04 (not with Mac currently as the version 2.3.3 just dies on Big Sur, was previously). I don't use IP addresses on the clients, but use the hostname (fully qualified if available - so myubuntubox.home.lan for example); then just make sure you reload the server and clients and you should be good to go.

I've tested this and the link survives IP changes. Maybe that'll work for you :-)

<!-- gh-comment-id:748054881 --> @shabbirh commented on GitHub (Dec 18, 2020): Instead of using the IP Address, you can try to use a hostname (the hostname that your DHCP server is aware of; on most networks and operating systems (I use Barrier with Win10, Ubuntu20.04 (not with Mac currently as the version 2.3.3 just dies on Big Sur, was previously). I don't use IP addresses on the clients, but use the hostname (fully qualified if available - so myubuntubox.home.lan for example); then just make sure you reload the server and clients and you should be good to go. I've tested this and the link survives IP changes. Maybe that'll work for you :-)
Author
Owner

@JoPhiGURU commented on GitHub (Dec 19, 2020):

I've tested this and the link survives IP changes. Maybe that'll work for you :-)

Thank you so much, I'll try this!

<!-- gh-comment-id:748397477 --> @JoPhiGURU commented on GitHub (Dec 19, 2020): > I've tested this and the link survives IP changes. Maybe that'll work for you :-) Thank you so much, I'll try this!
Author
Owner

@DesignsWithDavid commented on GitHub (Jan 7, 2021):

Thank you so much, I'll try this!

If it worked, please update us and close the issue.

<!-- gh-comment-id:756414664 --> @DesignsWithDavid commented on GitHub (Jan 7, 2021): > Thank you so much, I'll try this! If it worked, please update us and close the issue.
Author
Owner

@webdev23 commented on GitHub (Jan 10, 2024):

It was painful, but here is what's ended up to work for me, to start the barrier client from SSH, with both computer having constantly changing dynamic IP.

The SSH handshake must be set passwordless, with ssh-copy-id
Then:

#!/bin/sh
ssh piuser@raspberry.local '/usr/bin/barrierc -f --name piuser --disable-crypto thisPCwhithmouseHostname.local:24800'
<!-- gh-comment-id:1885431412 --> @webdev23 commented on GitHub (Jan 10, 2024): It was painful, but here is what's ended up to work for me, to start the barrier client from SSH, with both computer having constantly changing dynamic IP. The SSH handshake must be set passwordless, with `ssh-copy-id` Then: ``` #!/bin/sh ssh piuser@raspberry.local '/usr/bin/barrierc -f --name piuser --disable-crypto thisPCwhithmouseHostname.local:24800' ```
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: github-starred/barrier#778
No description provided.