Set site url from admin panel

I am trying to set the url for my metabase instance on my localhost. Need to provide it to other users. I went to admin panel -> settings -> general -> site url. But when i open the url , it says page doesn’t exists. Also the user’s invite email link also open upto blank page.
What am I missing?