Edit router for localhost and public server