Edit router for localhost and public server

Edit router for localhost and public server