Communication between remote applications

This forum is for eXpress++ general support.
Post Reply
Message
Author
Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Communication between remote applications

#1 Post by Victorio »

The easiest way to solve such a problem:
I have an application on a local computer, and a database or even a running application on a remote server.
I need to send data to this server, e.g. several variables, or a file containing data, the server will pick them up and send the data back to me. Now I only have access to FTP where it is inconvenient and time consuming due to connecting and disconnecting to FTP.
How would I be able to send a file to a remote server as easily as possible, and how would the server be able to send me a file with the results back? I tried to make an application under XB2NET, but somehow I couldn't get it to work.

User avatar
PedroAlex
Posts: 234
Joined: Tue Feb 09, 2010 3:06 am

Re: Communication between remote applications

#2 Post by PedroAlex »

Victorio.
Today there are a thousand and one ways to solve this type of problem.
For example, a free, quick and effective way:
You can install a cloud folder (DropBox, Google drive, etc..) on your terminal and server and exchange XML files. You place the question in XML in the folder, the server receives the request and responds in XML. I use this technique to communicate with other applications successfully.
Pedro Alexandre

k-insis
Posts: 122
Joined: Fri Jan 28, 2011 4:07 am

Re: Communication between remote applications

#3 Post by k-insis »

Open xb2net samples directory.

Postweb.prg is good example: you post some data and get some from webserve.prg
Like you described you can send some file in base64 encoded, some array, variable
then wait for server processing and return in http stream.

you need to open firewall and allow webserve to run
to protect data, use https protocol and provide certificate (like LetsEncrypt) to webserve.exe

All you need is to look at source that is already there and reuse it.

You can also hire someone to write you python/php server side routines to run server side workload and still use xbase to communicate.


Victorio wrote: Fri Jul 26, 2024 1:45 am The easiest way to solve such a problem:
I have an application on a local computer, and a database or even a running application on a remote server.
I need to send data to this server, e.g. several variables, or a file containing data, the server will pick them up and send the data back to me. Now I only have access to FTP where it is inconvenient and time consuming due to connecting and disconnecting to FTP.
How would I be able to send a file to a remote server as easily as possible, and how would the server be able to send me a file with the results back? I tried to make an application under XB2NET, but somehow I couldn't get it to work.

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Communication between remote applications

#4 Post by Victorio »

ok, thanks for advice , I will look for it.
some problem can be with server, because this one is well secured and the administrator will not be very willing to release the firewall for communication due to the fear of hacking from outside. the server belongs to the state wan, so I have to do it so as not to endanger important data. ;)
now, for "two-way" communication, I only use an FTP server, to which, for example, I upload a file from the client PC, and the server reads it, and in turn the server uploads something to the server, and the client PC downloads it. But communication via FTP is slow, especially the initial connection to FTP (I use WinSCP).
But I will try what you advise, whether he will allow me such communication.

k-insis
Posts: 122
Joined: Fri Jan 28, 2011 4:07 am

Re: Communication between remote applications

#5 Post by k-insis »

I do respect that sysadmin stance.

If you do anything with that kind , security is basic need. A VPN is good start if possible to secure communication to that remote machine.

Also: FTP (regular one, not FTPs which is entirely different protocol and you probably use) is inherently old and insecure.

Try with xb2net, it delivers what it promises since more than 20y .
Victorio wrote: Mon Jul 29, 2024 12:01 am ok, thanks for advice , I will look for it.
some problem can be with server, because this one is well secured and the administrator will not be very willing to release the firewall for communication due to the fear of hacking from outside. the server belongs to the state wan, so I have to do it so as not to endanger important data. ;)
now, for "two-way" communication, I only use an FTP server, to which, for example, I upload a file from the client PC, and the server reads it, and in turn the server uploads something to the server, and the client PC downloads it. But communication via FTP is slow, especially the initial connection to FTP (I use WinSCP).
But I will try what you advise, whether he will allow me such communication.

Post Reply