no need to reinstall, few places you need to make the change to:
1. change the host file or dns, then access CM through hostname instead of IP address
2. make sure the DB hostname is correct if your repo is on the same server:
3. change agent configuration to make sure it using hostname or new IP address
restart CM and CM agent.