Just made noob mistake

Hello,

I just changed the server name within the console but now I lost access to it completely. How can I change it back?

The server name originally was 127.0.0.1 but I changed it, but I believe all the original admins were pointed to 127.0.0.1.

I am on CentOS 6 with Openfire 3.7.1.

It says:

Login failed: make sure your username and password are correct and that you’re an admin or moderator.

You can either try stopping Openfire and editing /openfire/conf/openfire.xml. Uncommenting tag and adding your admin here with the new server’s name (e.g. admin@server). Then saving and starting Openfire and trying to login.

Or editing the same xml and changing the tag on the bottom to true and rerunning the setup specifying the server’s name you want to be and setting a password for an admin again.