How to disable IPv6 on Linux
Disabling IPv6 temporarily
Run the following command to disable IPv6 temporarily:
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow