Fixed IP detect and updated submodules