Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to access a database via IP
Forum Updated to NodeBB v4.3 + New Features

How to access a database via IP

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 908 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CadNetoC Offline
    CadNetoC Offline
    CadNeto
    wrote on last edited by
    #1

    My Qt5.5 app is simple, just a QMainWindow with a TableView that I query a database (MySql) in our server, and it works well. The problem is when I'm out of here, far from my Server. How can I comunicate with my database in my server via IP. I'm looking for a exemple, a material to read, or a description.
    Thanks for your support.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      ki John
      wrote on last edited by
      #2

      You have to use the "port forwarding" feature of your router. MySQL usually uses port 3306. So tell your router to forward port 3306 from the Internet to your Mysql server (example 192.168.1.200:3306).
      But first consult a security expert since "Port Forwarding" means you're opening a door on your firewall. And 3306 is standard port so it will be hit by port scanners.

      CadNetoC 1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        we use VPN for this.

        1 Reply Last reply
        1
        • K ki John

          You have to use the "port forwarding" feature of your router. MySQL usually uses port 3306. So tell your router to forward port 3306 from the Internet to your Mysql server (example 192.168.1.200:3306).
          But first consult a security expert since "Port Forwarding" means you're opening a door on your firewall. And 3306 is standard port so it will be hit by port scanners.

          CadNetoC Offline
          CadNetoC Offline
          CadNeto
          wrote on last edited by
          #4

          @ki-John

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved