S
Slothagami
Guest
To put it simply: How do I connect to my friends that live a few blocks away? (I have just started to learn how to make multiplayer games)
All the tutorials I've seen just say "we'll connect to local host for now" and then never come back to it.
Do I need to just change the server_ip to something specific or do I need to completely redo the networking?
Will my IPv4 work as server_ip for this?
Here is some of my code:
If it helps I have been mostly following this tutorial series:
(I just included the code I thought was relevant, if I need to post any more information please let me know)
Thanks in advance!
All the tutorials I've seen just say "we'll connect to local host for now" and then never come back to it.
Do I need to just change the server_ip to something specific or do I need to completely redo the networking?
Will my IPv4 work as server_ip for this?
Here is some of my code:
Code:
// o_client - Create Event
#macro PORT 45000
server_ip = "127.0.0.1"
socket = network_create_socket(network_socket_tcp);
connect = network_connect(socket, server_ip, PORT);
Code:
// o_server - Create Event
server = network_create_server(network_socket_tcp, PORT, MAX_CLIENTS);
(I just included the code I thought was relevant, if I need to post any more information please let me know)
Thanks in advance!
Last edited by a moderator: