Fixed the issue with opening the address

Set it up correctly. Now it checks and assigns the first IPv4 address
from the possible Address Array in DNS