I work with C# in my spare time and have written a number of programs as one of my hobbys. So I dont consider myself a programmer, I just like to write solutions for problems I come across.
My latest problem is.. I have written a C# program that needs to gain data from other people using the same application.
It's a voice application and the data I need to gain from the others is their nickname, what channel they are in, how to contact them etc etc.
The Linux part.. At the moment I start my app and it reads information from a file on the web, adds my information to the file and then uploads it back over FTP.
Whenever the information changes, my app repeats this ( reads, adds and uploads).
Other users of the app do exactly the same (read, add, upload) which results in everybody seeing who is online and how to contact them.
The file is hosted on two linux web servers. One is a hosting plan with a hosting company (running on red hat I think), the other a Centos 7 box in my garage. I use 2 servers for redundancy, so if one cant the accessed the other server can be used.
The problem... As multiple users are using this app at the same time, my hosting company is flagging up security issues as FTP is being used a lot in short periods from IP addresses all around the world.
My Centos box seems to be ok with this method, but uploading over ftp everytime I need to update seems a bit messy to me and wrong somehow.
I've read about Web APIs that not only confused me, but seem to be mostly targetted at windows servers and I'm assuming would require my hosting company to open a port?
I know there must be an easier/better way to do what I'm doing. I just cant think what that might be and would appreciate suggestions.