How can I change the port through which my VPN travels through?

Hello!

I’ve been experimenting with openvpn for a while now, and I’d like to know how I can change the port that my VPN uses to avoid an internet block. I’ve read that its possible to change the port by changing the info in a config file, but I’ve never found such a file.

Is there a different way to change my port, or where can I find this config file? If changing ports isn’t the easiest way to avoid an internet block, I’ve also heard about things like shadowsocks, and I’d like to know what the easiest way to get around the block is.

If it helps, I’m using a digital ocean server, the preconfigured openvpn server that is in marketplace.

Thanks!

Don’t forget to change the port on your router port forwarding as well.

It’s right in the config file. Really simple. If your ISP is really nasty, you can even run it on tcp/443. I’ve done that to get around some public wifi blocks. Running on tcp will affect your speed if the connection isn’t perfect.

Thanks!

I’ve tried this but been unable to find an openvpn file in /etc.