[ENet-discuss] enet_host_create fails with public IP
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:
> 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.
> ENet-discuss mailing list
> ENet-discuss at cubik.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ENet-discuss