get local ip a better way