Flimsy get ip
More flexible get ip