How to access a DB that is on a remote server?
-
@U7Development also, you wrote:
My Server in this case has MariaDB using port number 3306, root & pass and a no-ip url to get from outside.. No-IP is already setup and working, but i have no idea how i need to configure my server to make it listen my outside client... Do i still need to forward the server lan ip on the router?
My understanding is that you have the server on the LAN somewhere and would like to connect remotely over the Internet?
In this case you need to forward the port of the DB from the outside (the internet) to point into your server's ip (inside) on your router. This can be done as a simple port forwarding/triggering in simpler models of the routers.To connect you'll need to know public IP (or URL should you have one) of the router and use this to connect. That kind of setup might be tricky though if you have dynamic IP address on the router (and setting this up is a bit outside of topics on this forum).
-
@U7Development In theory, yes. In practice there still might be network issues preventing successful connection (that kind of setup is quite complicated to debug as there might be both software compatibility issues and routing issues on the network). Try it, see if it works.
Also, if your router permits any kind of logging it might be worth settings this up to monitor network connectivity - especially with regards to port forwarding.
Side note - please check if your router allows exposing "applications" to the outside interface, some built in router firewalls have that option. From my experience using this option in the router firewall works more often than simple port forwarding.
As I said, there are multiple non-exclusive points of failure in that kind of setup. -
@artwaw yes, agreed... i need to contact to my ISP to check if my modem-router is enabled to port forwarding or permit access from outside by firewall as you said..... otherwise i will need to buy a custom router and set ISP modem to Bridge..
Thanks !
-
@U7Development You should seriously rethink your approach - exposing databases directly to the Internet isn't a good idea...
-
Locking this topic - attracts spammers.