<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div class="h5"><div class="gmail_quote"><div dir="ltr"><div id="m_4747363351284050307m_-4738244763522582155divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr"><div style="color:rgb(0,0,0)"><div><div id="m_4747363351284050307m_-4738244763522582155divtagdefaultwrapper" style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:12pt" dir="ltr"><p>Good, the written for the references of the remote connections to MySQL. I have this code for the connection:<br>
<br>
**** <br>
<br>
< ?php<br>
$ip = gethostbyname('<a href="http://server.no-ip.org" target="_blank">server.no-ip.or<wbr>g</a>');<br>
<br>
$conexion = mysqli_connect($ip, 'web', 'server123+', 'test') or die('Error al intentar conectarse a la base de datos.');<br>
echo 'Conectado correctemente';<br>
mysqli_close($conexion);<br>
<br>
?><br>
<br>
***<br>
<br>
I explain my essence I have my MySQL server in my office and my page with the Apache server on my Tablet (Android). Which I want to do a query from my web hosted on my tablet through a public network to my MySQL server in my office, for later the result of
 the query store it in MySQL of my tablet to consult this data on my tablet OFF-LINE mode. It's kind of like data sychronization.<br>
</p>
<p><br>
</p>
<p>Already enable the MySQL server in the office to allow remote access also opened port 3306 on the router. But I still have this error:<br>
<br>
*****<br>
<br>
Warning: mysqli_connect (): (HY000 / 2002): An error occurred while attempting to connect because the connected part did not respond properly after a period of time, or there was an error in the connection established Since the connected host was unable to
 respond. In C: \ xampp \ htdocs \ Demo \ index.php on line 10<br>
Error while trying to connect to database.</p>
<p><br>
<br>
***<br>
How can I fix it or am I doing wrong?</p></div></div></div></div></div></div></div></div></div></div>
</div>