[ENet-discuss] enet_host_create fails with public IP
bjorn at lindeijer.nl
Mon Oct 27 11:28:50 PDT 2014
On Mon, Oct 27, 2014, at 04:32 PM, Ron Bunce wrote:
> I have a working server / client coded based on the example code. It
> works just fine when I set the address as "127.0.0.1" or "localhost".
> However when I try to use my public IP address, "xx.xx.xx.xx",
> enet_host_create fails. I've scratched my head on this for a few
> hours and I cannot work this out. I see no reason why this should
> fail. Any idea's?
Could it be, that your "public IP address" is actually the address of
your router and not of the machine you're running your enet server on?
You need to use an IP that belongs to the machine that the server is
running on, and if you want your server to be available through your
router you'd need to set up port forwarding on the router.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ENet-discuss