Want to connect to local database from java application on server - database-connection

I have a local Ms access database in a local computer connected with internet with dynamic IP. And I have a java web application running on web server. How can I connect to Database in local pc with dynamic ip from the java application running on server

You would have to serve it from the client machine using either a local web server or a VPN tunnel.
Possibly a better idea (I mean, anything sounds better than connecting to a client-side DB, right?) would be to have the client upload the database (depending on the size) and then connecting to the server-side copy.

Related

Azure Hybrid Connections to onsite SQL Server with a Linux PHP WebApp - sanity check

Okay, I feel I'm pretty good at problem solving but I'm stumped! I can't get connectivity to the SQL Server via the Hybrid Connector or directly.
System Overview:
1x Linux PHP Based WebApp with all the correct SQLSRV libraries working (using a azure sql server I can get the webapp working fine, but need to use our onsite server for the time being)
1x Onsite SQL Server (win2012, sql version 11.0.7), which has an external static IP (and FQDN) and exposed to the internet on port 1433 (I can use SMSS from an external IP to connect and manage the server - with that IP added to the firewall that is..)
So firstly - trying to connect via PHP / SQLSRV directly to the server doesn't work (even if I allow all internet traffic to connect to the server via the firewall) - which is odd as SMSS works. The server is Win2012 and TLS 1.2 is enabled - but I get Error code 0x2746. Investigating this, I think its something to do with openssl 1.1.1 and SQL Server still only using SHA1 - I modified the openssl.cnf file to SECLEVEL=1 - still not dice.
So I've proceeded to setup the Hybrid connections using port 1433 using internal machine name say 'SERVER01' for the endpoint - everything says connected on both the azure hybrid screen and also on the connection manager on the server. I can telnet from SERVER01 to the service endpoint bus and from SSH on the WebApp I can ping the hybrid end point 'SERVER01:443'
But trying to connect to the database from PHP using SQLSRV it timeouts.
Anyone got any pointers? I'm thinking its due to the old onsite server being too old (Win2012) and the SSL SHA1 issues.

How to access a Self-Hosted SignalR server from a different machine

I have a self hosted SignalR server on one machine and I wish to access it from a client application on a different machine in the same local (in house) network). My client works fine using "Http://LocalHost:8089" on the same machine as the SignalR server. But I can't seem to be able to write a URL that will gain access from a different machine.
How can a client on one machine access the server on a different machine?

How to find the URL/Public IP to access the server run by a Docker container, from my website on any network

I have set up a node.js server and run it in a Docker container.
I am hosting MySQL database on my computer and have the server connected.
I have deployed my website on netlify and it uses REST API to send and retrieve data to the server.
Currently, the API url uses 'http://localhost:4941/api/v1...' When I access the website on the same computer as the database is hosted, I am able to see the data retrieved from the server.
However, when I access the website on another computer (and from a different network), I am not able to see the data obtained from the server.
I have tried using 127.0.0.1 as well as the Docker container's IPAddress of 172.17.0.2 but was unable to solve the problem too.
I expect to be able to use my website from any computers in the world that have access to Internet and be able to send and retrieve data from the server.
So, does the problem lie in the API url of me using localhost? If so, what address should I use instead?

need to run client/server in corba without using name service or file

I need to run a client server application in corba using c++ without using name service or without managing a shared file.
Basically want to run the server on one port and client should connect to this.
But the port will be read in client side and this needs to be communicated to server.
Is there a way to achieve this communicating the port from client to server.

Can a remotely stored ASP app access a networked local machine?

I'm about to being developing an application that will connect to a Unix machine on a network (via internal IP). The machines that will be running this application already have access to connect to the Unix machine.
If I develop an ASP.NET MVC Web App running on an external IIS instance, will the web app be able to connect to a private local machine? I realise the IIS server won't (as it's private), but there will be locally executed code. Is this going to be able to access the machine? If not, I will have to resort to Windows desktop app.
You can use a VPN connection from an external server to the private network. Virtual hosting hasn't this feature, so you must use virtual machine.
A firewall software allows you to create VPN server usually, and any version of Windows allows you to establish a VPN connection to the server.
With a help of VPN connection your virtual machine can get ф private IP-address, and can access private network resources.

Resources