IPv6 or IPv4, which works better with a VPN?

The Internet Protocol (IP) is the principal communications protocol for relaying datagrams across network boundaries. As the internet has evolved, so has the need for more advanced IP versions. While IPv4 has been the dominant IP version for many years, the introduction of IPv6 brought about several advantages. However, when it comes to VPNs, the choice between IPv4 and IPv6.