Jump to content

Making the server public


hedgehog27

Recommended Posts

I know this is a VERY broad problem, but I'm having issues with making it possible for other people to play my server. I'm pretty sure I followed all of the steps in the guide for dummies (including the advanced guide for setting up the server), but after I do the advanced part, not even I can log in.

Just a simple re-wording, or your own re-written guide to making the server public would make me VERY grateful!

Also, I'm using patch 1.12.1.

Link to comment
Share on other sites

First off it's not making the server public. It's making it possible for testers (family n friends) to connect to your server.

And second what did you do so far? It's just changing the conf files to connect to your world&realmdb and changing the ip in realmd database, nothing else has to be done. If you test on your pc, after changing the ip in realmdb you have to change it the realmlist.wtf file as well.

Regards

Skirnir

Link to comment
Share on other sites

Thanks for the reply.

What I mean by 'public' is that people outside of my house can log into and play the server.

I have done what you said - changed the conf files, the realmd database, and my realmlist, but I get instantly disconnected when I try to log in after doing all of that. That's why I feel like I'm missing or messing up an important step.

I think if I made a stupid mistake it would be with changing my IP where it needs to be changed. When the guide says "change the red part (127.0.0.1) to your desired IP address", what should I be changing it to? My personal IP address that I can see on a website that tells me what it is? Or is it what I got from no-ip.com (whatever.servegame.com)?

Link to comment
Share on other sites

You insert the IP your dynamic dns provider gives you. In realmd you insert "whatever.servegame.com" and in realmlist.wtf you add this as IP as well.

in configs you have something like:

server:127.0.0.1

database:mangos

server:127.0.0.1

database:realmd

and in realmd database you change:

address: whatever.servegame.com

In realmlist.wtf you change:

set realmlist whatever.servegame.com

You have to make sure that no firewall is blocking you and that the port your trying to connect to is open.

hth

Skirnir

Link to comment
Share on other sites

I think that solved part of my problem, and I thank you very much for that!

However, I have a new problem. Here's what I did:

Changed the address in realmd to realmname.servegame.com (clicked the 'edit' pencil towards the bottom of the screen, and put in my realmname.servegame.com in the 'address' row, then saved)

Changed the 3 "localhosts" in both index.php and pomm_conf.php to my LAN / internet IP (the one I get what websites that "tell me my IP", NOT the realmname.servegame.com)

Then redid the "Setting up the client" part of the guide (under "actual realm" it says myrealmname.servegame.com, I pressed save, clear WDBs)

Changed my realmlist.wtf to "set realmlist myrealmname.servegame.com"

Now when I try to start the server, both 'Start Realm' and 'Start MangosDB' close right after I open them. The guide said to check realmd.log, and it says "ERROR:Cannot connect to database".

Are you noticing something i'm doing wrong in these steps? Hopefully helping me isn't too stressful. Your kindness is much appreciated.

Link to comment
Share on other sites

Changed the 3 "localhosts" in both index.php and pomm_conf.php to my LAN / internet IP (the one I get what websites that "tell me my IP", NOT the realmname.servegame.com)

This is the bit i dont understand!

What are those files?

In your mangos.conf and realmd.conf you should leave the db address as localhost or 127.0.0.1 (unless you database server is a different machine)

Link to comment
Share on other sites

In the Setup guide for dummies included in the docs folder of the mangos platinum download, under step 4 of "setting up the server (Advanced)" it says:

"Open index.php and pomm_conf.php with notepad

$host="localhost"; // HOST for Mangos database

$user="root" ; // USER for Mangos database

$password="root"; // PASS for Mangos database

$db="mangos"; // NAME of Mangos database

$hostr="localhost"; // HOST for Realm database

$userr="root" ; // USER for Realm database

$passwordr="root"; // PASS for Realm database

$dbr="realmd"; // NAME of Realm database

$database_encoding = 'CP1251'; // Set encoding

$img_base = "img/"; // Image dir

$server = "localhost"; // Server adress (for realm status)

Change localhost to your LAN/ INTERNET IP"

so I replaced all the localhosts with my IP address. If I kept them localhost or 127.0.0.1, wouldn't I be the only one that could get onto the server?

I should also note that

a. I'm creating a 1.12.1 server (that probably won't matter because I was able to make the server work for myself fine)

b. when I go to my main page (http://localhost/) it says at the top:

"Error: Unable to connect to MySQL server. MySQL reported: Can't connect to MySQL server on '(my IP address)' (10061)." but only when I try to make it so other people can log onto the server.

Link to comment
Share on other sites

@hedgehog27: Sorry mate there is no such thing as a mangos platinum download in my world. You obviously use a repack I don't know. These php files you refer to are not part of mangos, neither is the guide you read. That's why we can't help you, sorry. You also can try to get help from the person who gave you this repack, but due to security reasons (who knows what was compiled) and the learning part; you could as well try to compile it yourself and create a server. Something people of this forum can help with.

You can find mangos sources for mangos 1.12 here: [1]

Guides how to compile these sources should be there: [2]

Regards

Skirnir

[1] https://github.com/mangos/zero

[2] http://getmangos.eu/wiki/Portal:Main

Link to comment
Share on other sites

I must have downloaded a repack and forgot that was what is was because I downloaded it some time ago. Thanks for clearing that up for me, and thanks for attempting to help with my problems. Sorry for any time you may feel I have wasted. I guess I'll try to compile my own server now.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use