Need to check if toxcore initialized correctly.
Automatic switch to ipv4 if ipv4 failed.