Disable IPV6 for Applicaiton

TD.335

New Member
Joined
Apr 17, 2020
Messages
4
Reaction score
0
Credits
0
Hi, I have a application that is reporting it's listening on IPV6 but i need it to listen on IPV4. How can i change the application to use IPV4?
 


Hi, I have a application that is reporting it's listening on IPV6 but i need it to listen on IPV4. How can i change the application to use IPV4?
Which distro? If you use network manager applet, right click on it and open the network settings, go to the IPV6 tab and from the drop-down menu where it reads automatic change it to ignore and see if that works.

Hope this helps! :)
 
Unfortunately, it doesn't have NetworkManager interface. Is there a command that I can run to achieve the same thing?
 
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1062.18.1.el7.x86_64
Architecture: x86-64
 
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1062.18.1.el7.x86_64
Architecture: x86-64

Are you using a DE or text mode only? Since it is CentOS core it doesn't come with a DE by default unless one install it. If you're using text mode only, type
Code:
sudo nano /etc/sysctl.conf
hit enter and append this to the file:
Code:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
For the changes to be saved and take effect type
Code:
sudo sysctl -p
hit enter and that should be it. Try your app again and see if it worked.
 
Open the Control Panel.
Click Network and Internet > Network and Sharing Center > Change Adapter Settings.
Right-click the network adapter and click Properties.
Double-click Internet Protocol version 4 (TCP / IPv4).
Select the Use the following IP address option
 


Latest posts

Top