in the /etc/hosts file you can man localhost(127.0.0.1) to any other name you like , so that you can access with that name.
Also there is another option , use 3rd part software called ngrok which does similar job.
Use the comand ngrok http 4502 , it will give you the host name thru which you can access (note: You need to install ngrok plugin for this)