[ENet-discuss] enet_host_create fails with public IP

Ron Bunce neoshockx at hotmail.com
Sun Nov 2 09:51:35 PST 2014


Sorry for the late reply, I completely forgot I posted on this board.
Turns out I was simply behind NAT and needed to forward the ports.
Thanks.
Date: Mon, 27 Oct 2014 14:11:23 -0500
From: kronck at gmail.com
To: enet-discuss at cubik.org
Subject: Re: [ENet-discuss] enet_host_create fails with public IP

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




_______________________________________________
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/20141102/94fe41ed/attachment.html>


More information about the ENet-discuss mailing list