Probably dumb problem while connecting own client to own server (solved)

Added by ragnar-gd over 4 years ago

Hi,

Status:
Compiled own windows-client, can connect to open shard at will (don't ask how, its awkward, but it works good enough for me). Milestone 1.
Compiled own windows-server, services are starting up (with a few warnings, more on that later). Milestone 2. Yay! My son even patted me on my back!
But now, I cannot connect my own client to my own server on the LAN. Duh...

2010/12/06 08:46:45 WRN e38 ryzom_client_r.exe http_client.cpp 62 CHttpClient::connect : Can't connect to web server '192.168.x.x:40916': Socket error: Connection to 192.168.x.x:40916 (192.168.x.x) failed (10061: Connection refused, the server may be offline)

Of course, the reason is trivial: Neither have I set up a web server, nor an mysql database. And others steps as well.

Follow me through the wiki:

Nearly everything is fine on:

http://dev.ryzom.com/wiki/ryzom/BuildForWindowsCmake

My small problems so far:
1. Using the commandline-style of building is not giving the same result as the vc++ gui "way" for me. So i use the latter.
2. No matter what i do, when not compiling with "WITH_DRIVER_DIRECT3D" (as i.e. on the commandline by default), the client will whine, even if setting in client.cfg to OpenGL. My error, possibly. So i compile with "WITH_DRIVER_DIRECT3D"

Then, the page directs me to

Additional Step Necessary for Server Startup¶

Please continue on to: http://dev.ryzom.com/wiki/ryzom/FixingWindowsBatch : for a fix to the shard_start.bat file on Windows systems.

There i fix the shard_start.bat, and the server-services start.

But for Milestone 3, to be able to connect my own client to my own server, there are still things to be done. But Which? <Ragnar-GD whining> No links show the way...

I think the most solutions are on:

http://dev.ryzom.com/wiki/7/EverythingWindows

Still, i can't say which steps there are
  • absolutely necessary for connecting a client
  • optional for connecting a client
  • outdated (and thereby plainly wrong).

Please, guide me (using this three categories, if possible, please? :), and once i connected my client to my server, i'll correct the wiki gladly.

Maybe a link at the end of the page on http://dev.ryzom.com/wiki/ryzom/FixingWindowsBatch , to a new page, something like "Setting up necessary <things> beside ryzom_services" ? I'd write down the steps there, if you give me an empty page ... :-)

Cheers,
Ragnar G.D.


Replies (9)

RE: Probably dumb problem while connecting own client to own server - Added by sfb over 4 years ago

Ragnar,

The page RunClientOnWindows covers connecting your client to a shard but it is mixed in with a bit of other details so I'll cut it out for you. You need to edit your client.cfg and set the StartupHost variable:

StartupHost = "myownshard.com:40916";
Also, ignore FixingWindowsBatch since now I've "fixed" it by adding two new batch files:
  • shard_start_cmake.bat
  • shard_stop_cmake.bat

Thanks!
sfb
/s

RE: Probably dumb problem while connecting own client to own server - Added by ragnar-gd over 4 years ago

sfb,

no matter what, i already owe you a coffee! (my kids taught me to hold a promise, so count on that).

Still, my error-line shows, my client is working.
It's the server that dosn't answer - and that despite the fact every service is up und running.
Not only in the log, but also using a network-sniffer, i can clearly see, that the client tries to connect to <ip>:40916
And it's sending a http-request.
So most probably it's a webserver that has to answer (if ryzom doesn't have a strange concept what network-protocol to use for), right?
But there is none (of which i'm sure of, as i installed none).
And the webserver, again, probably needs an sql-base to work. Just guesswork of course...

Do you have apache and mysql running on your windows-server base or on some server nearby?
If both is not needed, i'd be glad, as this would help me when packaging a release later on.

Sidenote:
Funny is, even the self-compiled client draws files from the open ryzom server:

2010/12/06 09:26:00 DBG aac ryzom_client_r.exe http_client.cpp 57 CHttpClient::connect : Connected to web server 'open.ryzom.com:50000'
2010/12/06 09:26:00 INF f74 ryzom_client_r.exe path.cpp 956 NLMISC::CFileContainer::addSearchPath : PATH: CPath::addSearchPath(data, 1, 0): adding the path 'data/'
2010/12/06 09:26:00 DBG aac ryzom_client_r.exe http_client.cpp 57 CHttpClient::connect : Connected to web server 'open.ryzom.com:50000'
2010/12/06 09:26:00 INF aac ryzom_client_r.exe common.cpp 547 NLMISC::Exception::Exception : Exception will be launched: Couldn't retrieve user id
2010/12/06 09:26:00 WRN aac ryzom_client_r.exe login_progress_post_thread.cpp 225 CLoginProgressTask::run : Couldn't retrieve user id

...despite there is no hint in the cfg's. It seems to be hardcoded in naming_service.cpp (class CNamingService : public NLNET::IService), but i may still misinterpret this.
Maybe there's a var to override it, but i didn't find any.

RE: Probably dumb problem while connecting own client to own server - Added by sfb over 4 years ago

Ragnar,

That value, open.ryzom.com port 5000 is coming from your MySQL database. Check your domain table, I believe.

Thanks,
sfb
/s

RE: Probably dumb problem while connecting own client to own server - Added by ragnar-gd over 4 years ago

Hi, molator, sfb,

<ragnar shouting desperately>

I have no mysql installed!
I have no apache installed!
Because the instruction on http://dev.ryzom.com/wiki/7/EverythingWindows how to install on windows is contradictory with http://dev.ryzom.com/wiki/ryzom/BuildForWindowsCmake !

<ragnar is breathless from shouting>

All excerpts from logs are from my client-log.
So my logs and error-messages show, what my client wants and tries to do, but mostly cannot.
In the logs of my Server-PC B no trace of Client-PC A appears.
My client is on a completely different PC than my server.
My client on PC A does not connect to my server on PC B.
The reason is, that the Server on PC B does not answer.
Probably, because there is no webserver, and no mysql on PC B.

I need non-contradictory instructions on how to install everything on my windows-server PC B.

Thank you for being so patient with my stupidity! O:)

RE: Probably dumb problem while connecting own client to own server - Added by nimetu over 4 years ago

port 40916 is webserver and login port client connects.

You should follow instructions from
http://dev.ryzom.com/wiki/7/EverythingWindows#Setting-up-ApachePHP
http://dev.ryzom.com/wiki/7/EverythingWindows#Setting-up-MySQL

you need both apache/php and mysql.

RE: Probably dumb problem while connecting own client to own server - Added by ragnar-gd over 4 years ago

Thank you!

The start of:

http://dev.ryzom.com/wiki/7/EverythingWindows

... contradicts ...

http://dev.ryzom.com/wiki/ryzom/BuildForWindowsCmake

Is that part outdated?
Shall i delete that part?
Or does it have to be incorporated into http://dev.ryzom.com/wiki/ryzom/BuildForWindowsCmake (which i should not do, because i surely lack some knowledge then) ?
Shall i set a link on the end of http://dev.ryzom.com/wiki/ryzom/FixingWindowsBatch pointing to http://dev.ryzom.com/wiki/7/EverythingWindows#Setting-up-ApachePHP ?

regards,
Ragnar G.D.

RE: Probably dumb problem while connecting own client to own server - Added by molator over 4 years ago

The build part of EverythingWindows is deprecated but some lines about x64 build remain right.
The settings part is right except the name of the batch to run the shard.

I think that we should duplicate the settings part in BuildForWindowsCmake and flag EverythingWindows as deprecated.

The last question is about FixingWindowsBatch.
When Lukan created it, there was no shard_start_cmake.bat, we could clean that wiki too.

RE: Probably dumb problem while connecting own client to own server - Added by ragnar-gd over 4 years ago

Yay!

I can see my dummy appearing on my server console!

... it's of course Ragnar ... :)

/emote: dance

Milestone 3!

Many, many thanks to you, nimetu, molator, sfb,and everyone else!

I will correct the wiki tomorrow, as now i'm quite tired... and there are still some strange messages here and there .... but: good night...

(1-9/9)