[GH-ISSUE #989] cannot listen for clients: cannot bind address: Address already in use #788

Closed
opened 2026-05-05 07:07:34 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @apfaffman on GitHub (Dec 13, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/989

Hello, everyone.

Barrier v 2.3.3 on Fedora 33.

Can't get Barrier running as a server. The logs report the following when trying to start the service:

[2020-12-12T18:34:32] ERROR: cannot listen for clients: cannot bind address: Address already in use
[2020-12-12T18:34:32] DEBUG: retry in 1 seconds
[2020-12-12T18:34:33] ERROR: cannot listen for clients: cannot bind address: Address already in use
[2020-12-12T18:34:33] DEBUG: retry in 1 seconds
[2020-12-12T18:34:34] DEBUG: retry in 1 seconds
[2020-12-12T18:34:34] ERROR: cannot listen for clients: cannot bind address: Address already in use

This is with SSL enabled or disabled on default port 24800.

Seems like there's a simple fix here I'm missing. Anyone know?

Originally created by @apfaffman on GitHub (Dec 13, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/989 Hello, everyone. Barrier v 2.3.3 on Fedora 33. Can't get Barrier running as a server. The logs report the following when trying to start the service: [2020-12-12T18:34:32] ERROR: cannot listen for clients: cannot bind address: Address already in use [2020-12-12T18:34:32] DEBUG: retry in 1 seconds [2020-12-12T18:34:33] ERROR: cannot listen for clients: cannot bind address: Address already in use [2020-12-12T18:34:33] DEBUG: retry in 1 seconds [2020-12-12T18:34:34] DEBUG: retry in 1 seconds [2020-12-12T18:34:34] ERROR: cannot listen for clients: cannot bind address: Address already in use This is with SSL enabled or disabled on default port 24800. Seems like there's a simple fix here I'm missing. Anyone know?
Author
Owner

@albertony commented on GitHub (Dec 13, 2020):

First guess would be that another instance of barrier server is already running, for some reason.

Have you checked that?

pidof barriers

Or, some other process could be already bound to that port?

sudo netstat -tlpn | grep ':24800'

<!-- gh-comment-id:744002178 --> @albertony commented on GitHub (Dec 13, 2020): First guess would be that another instance of barrier server is already running, for some reason. Have you checked that? `pidof barriers` Or, some other process could be already bound to that port? `sudo netstat -tlpn | grep ':24800'`
Author
Owner

@p12tic commented on GitHub (Jan 10, 2021):

Indeed, this seems to be most likely another instance of Barrier. We can't work around this, I'm thus closing the issue.

Please reopen if further investigation (e.g. by executing commands suggested here https://github.com/debauchee/barrier/issues/989#issuecomment-744002178) results in a different cause being uncovered.

<!-- gh-comment-id:757562098 --> @p12tic commented on GitHub (Jan 10, 2021): Indeed, this seems to be most likely another instance of Barrier. We can't work around this, I'm thus closing the issue. Please reopen if further investigation (e.g. by executing commands suggested here https://github.com/debauchee/barrier/issues/989#issuecomment-744002178) results in a different cause being uncovered.
Author
Owner

@YKX-RL commented on GitHub (Feb 27, 2024):

The reason is that address is already in use. Use "ps aux | grep synergys" to find process id, then kill all of them. After that restart synergy. For more details, please check the address of this website "https://superuser.com/questions/1217379/synergy-error-message-cannot-listen-for-clients-cannot-bind-address-address-a".

<!-- gh-comment-id:1965675929 --> @YKX-RL commented on GitHub (Feb 27, 2024): The reason is that address is already in use. Use "ps aux | grep synergys" to find process id, then kill all of them. After that restart synergy. For more details, please check the address of this website "https://superuser.com/questions/1217379/synergy-error-message-cannot-listen-for-clients-cannot-bind-address-address-a".
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#788
No description provided.