Retrieve the IP befroe we use it.

  Bugfix.