Skip to content

cf_server_set_public_ip

Category: net
GitHub: cute_networking.h


Overrides the public address clients are told to connect to (for NAT / port-forwarding).

void cf_server_set_public_ip(CF_Server* server, const char* address_and_port);
Parameters Description
server The server.
address_and_port The publicly reachable address and port clients should use.

Remarks

Only needed for local development behind a router, or any setup where the address the server binds differs from the address clients must reach. Leave unset in production.

CF_Server
cf_server_start