[ENet-discuss] enet_host_create fails with public IP

Dave Stanley kronck at gmail.com
Mon Oct 27 12:11:23 PDT 2014


Also, what really helps is to set up a dynamic dns account. Then, you can
just use yourname at Dyndns.org, for instance. You'll still need port
forwarding, but it saves you the trouble of always copying your ip address.
On Oct 27, 2014 1:47 PM, "Thorbjørn Lindeijer" <bjorn at lindeijer.nl> wrote:

>  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
>
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20141027/b6596126/attachment.html>


More information about the ENet-discuss mailing list