$ curl https://git.zx2c4.com/WireGuard/plain/contrib/examples/ncat-client-server/client-quick.sh | bash -

Learn more at WireGuard.com.