generated from AfonsoCMSousa/CPP-Template
Fix: Fixed hardcoded IP and Port
This commit is contained in:
parent
c5c9e22ed6
commit
95f5652c8d
@ -211,8 +211,8 @@ int main(void) {
|
||||
|
||||
current_packet.tracker_id = (u_int8_t)-1; // Mark as uninitialized
|
||||
|
||||
int send_sock_fd = connect_udp_socket("127.0.0.1", 11000); // SEND requests to Server
|
||||
int recv_sock_fd = create_bound_udp_socket("0.0.0.0", 12000); // LISTEN to server updates
|
||||
int send_sock_fd = connect_udp_socket(SERVER_OUT_IP, SERVER_IN_PORT); // SEND requests to Server
|
||||
int recv_sock_fd = create_bound_udp_socket("0.0.0.0", SERVER_OUT_PORT); // LISTEN to server updates
|
||||
|
||||
if (send_sock_fd < 0 || recv_sock_fd < 0) {
|
||||
fprintf(stderr, "[!] Failed to create sockets (%d)(%d)\n", send_sock_fd, recv_sock_fd);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user