how to access database on laptop using api on mobile - mobile

I have developed an application using sql anywhere database as back end and powerbuilder as front end. it is working on my laptop very well and i have also used this app on network server (without internet ) using wifi on another laptop. in which the program is installed on that other laptop and it connects database stored on my laptop .
now i want to develop a mobile app which should connect to my laptop and use database stored on it. It should connect the database using WIFI network.
i have knowledge of powerbuild simple programing, SQL and Visual basic. but i dont know any thing about mobile app developing.
Please help me to solve my problem.

This shouldn't be too challenging, it sounds like you want the app to connect to a network (or your laptop) database vs. the client machine like any web application and this shouldn't be a challenge other than making sure you've opened up the proper ports for the database in windows firewall AND/OR if you are on the INTERNET you'll probably need to set up port forwarding on your local router so that the database requests to your laptop from the "internet" get forwarded from your router to your local subnet (network).
So for example mySQL uses port 3306 (I think.. memory?) so you'd need a port forward in your router that forwards incoming 3306 requests to your laptop IP address, mac address, or machine name (better to use machine or mac).
HTH

Related

HOW TO ACCESS ORACLE APEX APPLICATION OVER A LOCAL NETWORK

I just want my ORACLE APEX APPLICATION along with Database installed in PC-1, and then rest of PC's just access this application via LAN cable or Wi-Fi. How can i do it without using any hosting service!?
And also want to know about the ORDS Restful Services
how to configure it for the other client systems and for the server side!?
Thanks in advance!
Oracle Apex doesn't differ to any other wesite from this point of view.
You need to setup Apex/ORDS listeners, and then you can access it from your local network like :
IpOfThePCWhereApexIsInstalled:PortConfiguredWithApex/Apex
for Example
192.178.160.1:443/Apex (if Apex is configured on port 443)
192.178.160.1:80/Apex (if Apex is configured on port 80)
This way, the browser will search for the ip inside your local network and access it.

How to connect to a sql database from a device connected to a different network

I am developing an app with a login system in flutter. Using postgresql I can access to an external database located in a raspberry. All works perfect until the network of the device changes. So here are my questions:
How can I access to a database from a device connected to a different network? Is that possible?
If not, how could it be the correct way to do it? or what should I read and/or learn to apply this funcionality?
Thank you.
This question is not Postgres specific.
You connect to servers over TCP/IP protocol using servers IP address or it's FQDN, fully qualified domain name. If your device is mobile and changes network, you can use some dynamic IP service or your own name servers.
Setting up a port forwarding system is also possible.

How do I connect the local SQL Server database for the ASP.NET Core application running inside either local Docker or Kubernetes?

I created an ASP.NET Core Web API using VS2017. After that I enabled the Docker support for my application.
Next, I was implemented the EF Core feature. After that I tested application locally then it’s working fine, database also created. But whenever I run the application inside local Docker or local Kubernetes the application won't work properly as I expected. because I used the Local SQL Server so, whatever the container running inside either Docker or Kubernetes it doesn't know the SQL Server or SQL Server database.
Can anyone suggest how to use the local database in the container running inside either Docker or Kubernetes?
You need to give the host's IP. In linux, you can use "host.docker.internal" hostname to connect to the host machine. It is supposedly working in Windows, however it has many, many, far too many problems in Windows.
If this hostname does not work for you, you have 2 IP addresses. One is the docker's gateway, that should start with 10...* or 172...* depending on how you set it up. Normally to learn this one, use docker inspect <container> and you can see the default gateway in the network section. However, Kubernetes might change these and it might be providing a better means to access the host. I did not use Kubernetes, so I don't know.
The other option is to use the IP address of the host, assigned by your network using DHCP. It should normally start with 192.168...
Your containers should be able to access applications on your host using these IP addresses. If the problem persists, turn off your firewall, and try pinging from inside the containers.

REMOTE ACCESS FROM ONE PLACE TO ANOTHER MS SQL SERVER

I have try to remote access from one computer to another within LAN connection. However, thru these days research a lot of the article said I need to do port forwarding. But I think in my country ISP has block this setting, I can even find the option in my router webpage.
Is there any other way to remotely access the ms sql server thru internet?
This is networking protocol. But you can do it using Remote Desktop Connection locally as long as you have an access to that particular Server.
Check the Firewall also to your server.
Another option is, you can access it remotely using TEAM VIEWER

How to setup a site application on WLAN

I'm very new to setting up databases so please bear with me.
My application(MVC4 with Entity Framework) is has been running locally in IIS Express on my development computer. I was wondering if someone connected in my WLAN network can access it by typing in localhost:XXXXX on their chrome?
I don't need my site on the internet! I just want it to be able to be accessed by people in my WLAN network
Do I need to pay for some kind of database service ? If so can someone link me to one.
Can someone list options for me please.
I was wondering if someone connected in my WLAN network can access it
by typing in localhost:XXXXX on their chrome?
No, localhost is the address for the local machine. So if someone types localhost:XXXX in a browser on their machine, it would point to IIS Express running (if any) on their machine.
If you want someone in your network access the website running on your computer, you can simply deploy it in IIS running on your machine. Then they could type in your computer's IP address (or name) and access your website provided your machine is turned on and IIS related services are running on your machine :).

Resources