added get ip and hw adress to socket