G
Gomango999
Guest
I have an extremely basic network set up, but the client does not seem to want to connect. I have two game maker programs running on two computers connected to the same wifi. I am using teamviewer so that I can work off one computer.
The first one has an client object with this in the create event: (msg is a custom script equivalent to show_message)
sock_self = network_create_socket(network_socket_tcp);
server = network_connect_raw(sock_self,"192.168.1.113", 6510);
msg("Finished connecting");
The second one on my other computer has a server object with this create event:
sock_self = network_create_server_raw(network_socket_tcp, 6510, 32);
I execute the server program first, and then the client program, but the client is unable to connect.
If I write some code in the step event to make the client program try multiple times, like so:
if (server < 0) {
server = network_connect_raw(sock_self, "192.168.1.113" , 6510);
}
and add this line of code to the create event:
network_set_config(network_config_connect_timeout,1000);
The client will consistently fail to connect to the server. In the compile log (not sure what's is called), I get this message that prints each time it tries to connect:
ioctlsocket failed with error: -1
Error (0x 2736): Could not set socket option
I've had a similar game maker server work just a few days before this incident, and have since restarted both computers while bugfixing. I am hoping that after dumping this information, someone might have a suggestion of what the issue might be, since I am absolutely stumped. Thanks for your time!
The first one has an client object with this in the create event: (msg is a custom script equivalent to show_message)
sock_self = network_create_socket(network_socket_tcp);
server = network_connect_raw(sock_self,"192.168.1.113", 6510);
msg("Finished connecting");
The second one on my other computer has a server object with this create event:
sock_self = network_create_server_raw(network_socket_tcp, 6510, 32);
I execute the server program first, and then the client program, but the client is unable to connect.
If I write some code in the step event to make the client program try multiple times, like so:
if (server < 0) {
server = network_connect_raw(sock_self, "192.168.1.113" , 6510);
}
and add this line of code to the create event:
network_set_config(network_config_connect_timeout,1000);
The client will consistently fail to connect to the server. In the compile log (not sure what's is called), I get this message that prints each time it tries to connect:
ioctlsocket failed with error: -1
Error (0x 2736): Could not set socket option
I've had a similar game maker server work just a few days before this incident, and have since restarted both computers while bugfixing. I am hoping that after dumping this information, someone might have a suggestion of what the issue might be, since I am absolutely stumped. Thanks for your time!