You need to set the correct listening port. If you want to use port 51820, set it as such: $ wg set wg0 listen-port 51820 Then adjust your endpoint to 'endpoint 1.2.3.4:51820'.