fix bug, can't get ip for linux