socket: No such file or directory

Need help? Ask here and someone will help
Post Reply
dapharsyde
Posts: 9
Joined: Sat Dec 06, 2014 10:14 pm

socket: No such file or directory

Post by dapharsyde »

i am trying to configure gimx to listen on an IP address and port in Windows 7

i am using a DIY USB adapter, connected to a PS4. everything works fine if i use gimx-launcher with the PS4_Watchdogs config file, listening to windows events. if i change the input to "network" though, i get an error like this:

Code: Select all

option -s with value `192.168.1.107:1234'
socket: No such file or directory
Can't listen on port: 1234.
connector_init failed
i have tried using 127.0.0.1, 0.0.0.0, and different ports, all with no success. i've turned off windows firewall, and also tried running gimx in an administrator console window, but still can't get it to work. am i missing some libraries that are required for network support on windows?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: socket: No such file or directory

Post by Matlo »

Hi,

This is a known issue that will be fixed in the next release: #300.
GIMX creator
dapharsyde
Posts: 9
Joined: Sat Dec 06, 2014 10:14 pm

Re: socket: No such file or directory

Post by dapharsyde »

Hi Matlo,

Thanks for the tip. I've compiled my own copy of gimx.exe using the latest source tree, and it appears to have fixed the IP listening problem.

Now I'm faced with a new issue - when I send commands to the gimx server instance, using a command like:

gimx -d 192.168.1.241:1234 --event PS(255) -t DS4

the server's status window shows:

1 1418092114.330356, PS (255)

and nothing happens on the PS4. This is similar to what happens if I just invoke gimx with just a single event. For example:

Code: Select all

gimx -p COM3 --nograb --status --refresh 40 --event PS(255)
option -p with value `COM3'
option -r with value `40'
option -e with value `PS(255)'
grab flag is unset
status flag is set
Detected USB adapter: DS4.
1 1418092793.556964, PS (255)
I've noticed that the first value shows a '1' instead of '0'. Actual keypress events seem to work correctly - if I send a keypress event, the PS4 responds as expected, and that value shows '0', so I'm guessing this is just the return code for the event being sent.

Code: Select all

gimx -p COM3 --nograb --status -c slim2.xml --refresh 40 --window-events
option -p with value `COM3'
option -c with value `slim2.xml'
option -r with value `40'
grab flag is unset
status flag is set
window_events flag is set
Detected USB adapter: DS4.
A device name is empty. Multiple mice and keyboards are not managed.
0 1418092941.262929, PS (255)  <-- pressed 'z' on keyboard, which maps to PS button
0 1418092941.382935
Do you know why --event commands always seem to return 1 instead of 0?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: socket: No such file or directory

Post by Matlo »

Hi,

The first value is the controller instance.
Just move the -p argument at the end of the command.
GIMX creator
dapharsyde
Posts: 9
Joined: Sat Dec 06, 2014 10:14 pm

Re: socket: No such file or directory

Post by dapharsyde »

i thought -p is used to specify the location of the adapter, which is why i use -p COM3

if i try -p 0, the DIY adapter is not detected...
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: socket: No such file or directory

Post by Matlo »

I meant, move the "-p COM3" at the end of the command.
GIMX creator
dapharsyde
Posts: 9
Joined: Sat Dec 06, 2014 10:14 pm

Re: socket: No such file or directory

Post by dapharsyde »

Thank you matlo, that seems to have done the trick. I can activate the gimx controller via remote commands now.
Post Reply