Now everything works fine. Thank you!<br><br>P.S. I put code<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"> const char* url = "localhost";<br>
const int port = 1301;<br> <br> ENetAddress address;<br> /* Connect to url:port. */<br> enet_address_set_host(&address, url);<br> address.port = port;<br></blockquote><div>before all connections attempts - is it right - it not it need to recreate ENetAddress after each unsuccessfull connection attempt? <br>
</div>