
I have an application developed in C# for desktop which will access MySql Database in an online server. Since it is a shared database the client IP can’t access the Database directly so i need to implement a proxy server which can accept the request from the client and after processing the business logic by using the Database it will return the result back to the client. The proxy will be acting as an intermediator. I haven’t been able to think of a way to implement the proxy server to handle the request. Leaving the Proxy aside the other things are in place and running fine. Any other alternative is most welcome!!!!
Wouldn’t it be better if your application just makes a HTTP-request to a page on your server, and the page itself executes the query and returns the result as json, xml, csv or whathaveyou? This way you avoid problems with users behind a firewall who can only use port 80, and it’s easier for you to filter out malicious queries in your script before they reach the database.