ip was not detected correctly on linux

fix #210