localhost means the server is running on the same machine. If you want to change the name, use your machine name instead or use 127.0.0.1. Moreover you can access the server from some other machine by writing the server machine ip instead of localhost.
To change the port you need to open
TOMCAT_HOME/conf/server.xml
You will find some lines like below
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
during installation -->
<Connector
port="8080"
Just change the 8080 to your desired no. Just make sure that the no you give should not already in use.