Problem starting Gimx Server on Windows

Discuss everything to do with GIMX here
Post Reply
peeezee
Posts: 5
Joined: Fri Feb 27, 2015 4:29 pm

Problem starting Gimx Server on Windows

Post by peeezee »

Hi there,

I try to start a Gimx server on Windows to listen on an arbitrary port (none works) but all it keeps saying is:

socket: No error
option -s with value `127.0.0.1:51914'
Can't listen on port: 51914.
connector_init failed

Does anybody have an idea, what's wrong?
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Problem starting Gimx Server on Windows

Post by Matlo »

Hi,

This is a known issue: https://github.com/matlo/GIMX/issues/300
GIMX creator
peeezee
Posts: 5
Joined: Fri Feb 27, 2015 4:29 pm

Re: Problem starting Gimx Server on Windows

Post by peeezee »

Hi Matlo,

thanks for pointing this out. I already read this commit and wondered why it is still not working.
My installation was just too old >.<

Cheers
peeezee
Posts: 5
Joined: Fri Feb 27, 2015 4:29 pm

Re: Problem starting Gimx Server on Windows

Post by peeezee »

Even after compiling the code with your changes (the binaries are outdated) the error is still there.
(And perror() doesn't give winsock errors, use WSAGetLastError() instead).

You are obviously missing the WSAStartup call for udp_listen() in udp_con.c.
Calling WSAStartup makes it work.
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Problem starting Gimx Server on Windows

Post by Matlo »

This is already fixed in the develop branch:
https://github.com/matlo/GIMX/blob/deve ... /udp_con.c

The master branch contains the code of the latest release which is v3.5.
GIMX creator
peeezee
Posts: 5
Joined: Fri Feb 27, 2015 4:29 pm

Re: Problem starting Gimx Server on Windows

Post by peeezee »

Didn't realize I'm on the master branch. Too late at night, sorry.

Thanks, Matlo. Keep up the good work.
Post Reply