[ENet-discuss] enet_host_create fails with public IP

Thorbjørn Lindeijer bjorn at lindeijer.nl
Mon Oct 27 11:28:50 PDT 2014


On Mon, Oct 27, 2014, at 04:32 PM, Ron Bunce wrote:
> Hello,
>
> 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.

Regards, Bjørn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20141027/ce87cdca/attachment.html>


More information about the ENet-discuss mailing list