Fixing emerging issues when sending more than one chunk. fixing ip resolution