added ipv4 support for the server