<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Sorry for the late reply, I completely forgot I posted on this board.<br>Turns out I was simply behind NAT and needed to forward the ports.<br>Thanks.<br><div><hr id="stopSpelling">Date: Mon, 27 Oct 2014 14:11:23 -0500<br>From: kronck@gmail.com<br>To: enet-discuss@cubik.org<br>Subject: Re: [ENet-discuss] enet_host_create fails with public IP<br><br><p dir="ltr">Also, what really helps is to set up a dynamic dns account. Then, you can just use yourname@Dyndns.org, for instance. You'll still need port forwarding, but it saves you the trouble of always copying your ip address.</p>
<div class="ecxgmail_quote">On Oct 27, 2014 1:47 PM, "Thorbjørn Lindeijer" <<a href="mailto:bjorn@lindeijer.nl">bjorn@lindeijer.nl</a>> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><u></u>




<div>On Mon, Oct 27, 2014, at 04:32 PM, Ron Bunce wrote:<br><blockquote><div dir="ltr">Hello,<br></div>
<div dir="ltr"> </div>
<div dir="ltr">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".<br></div>
<div dir="ltr">However when I try to use my public IP address, "xx.xx.xx.xx", enet_host_create fails. <br></div>
<div dir="ltr">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.<br></div>
<div dir="ltr">Any idea's?<br></div>
</blockquote><div> </div>
<div>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?<br></div>
<div> </div>
<div>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.<br></div>
<div> </div>
<div>Regards,<br></div>
<div>Bjørn<br></div>
<div> </div>
</div>

<br>_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br></blockquote></div>
<br>_______________________________________________
ENet-discuss mailing list
ENet-discuss@cubik.org
http://lists.cubik.org/mailman/listinfo/enet-discuss</div>                                          </div></body>
</html>