Added switching between local en ip host