WIP: Move IP stuff into dialogs

And simplify setting freezing accordingly.