Not able to ping the host as per demo of wireguard.

Jason A. Donenfeld Jason at
Sat Jul 22 00:22:54 CEST 2017

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

More information about the WireGuard mailing list