Modified code to send to specified destination ip