I have pivpn installed on my raspbian stretch running on 1194 port.

in the beginning it was working fine , but now from few days I am getting this error on reboot.

Sep 26 21:17:29 titan ovpn-bridge-clt[7641]: TCP/UDP: Preserving recently used remote address: [AF_INET]
Sep 26 21:17:29 titan systemd-timesyncd[318]: Network configuration changed, trying to establish connection.
Sep 26 21:17:29 titan ovpn-bridge-clt[7641]: TCP/UDP: Socket bind failed on local address [AF_INET][undef]:1194: Address already in use
Sep 26 21:17:29 titan systemd-timesyncd[318]: Synchronized to time server (2.debian.pool.ntp.org).
Sep 26 21:17:29 titan ovpn-bridge-clt[7641]: Exiting due to fatal error
Sep 26 21:17:29 titan systemd[1]: Failed to start OpenVPN connection to bridge-clt.
-- Subject: Unit openvpn@bridge-clt.service has failed

I googled the error and found few hints:

and I think this is the possible fix tp problem , maybe the openvpn starts too early.

But I am not expert to understand the /etc/init.d/openvpn because there are so many places where start_vpn appears.

I have also tried all the possible solutions here: https://www.raspberrypi.org/forums/viewtopic.php?t=178161

but no success.

Any help will be greatly appreciated.

  • The link this you have given, recommending to use a sleep may have been a solution in 2010 but nowadays systemd is used. /etc/init.d/ is deprecated and only emulated by systemd for backward compatibility. You should not look at it anymore. Look at systemd.
    – Ingo
    Sep 27, 2019 at 9:06
  • Get the output from sudo netstat -tlnpu | grep 1194 that should tell you what process is using port 1194.
    – Dougie
    Sep 27, 2019 at 18:21
  • 1
    On my default pivpn setup there is no ovpn-bridge-clt used. What do you do to use it? How do you enable/configure it? For what do you need it?
    – Ingo
    Sep 27, 2019 at 20:53

1 Answer 1


The message Address already in use means that there is already another process that has bound that address to a socket. Most of the time it is another instance of the same program, in this case another openvpn process.

Use sudo ss -ntuap | grep :1194 to find processes using port 1194.

If the address from the first line of the output is the address of your server, it is possible that the process interferes with itself. There are rules about binding the same port to a specific address and to the wildcard address.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.