Correcting minor bug for the ip affectation in ad-hoc mode
Fixing minor bugs