Fix the bug of getting IPv4 address