switched instances of socketaddress to inetaddress