1
I developed a C# Windows Forms application with Firebird database and I need to place the application with the database on a machine that will be like a server. With this, I need to access this server database by other machines that will be on the same network. How do I do this? What do I need to configure? If anyone has a tutorial link to show me.
Thank you!
I don’t think you should do that. Separate your web servers from the database server whenever possible, but if you HAVE to take that risk. Well, in that case, assuming your application is already working, you just need to set up your computer as a web server so that other people have access to your application and the content it manages in the database. https://www.youtube.com/watch?v=hlDNct5lokA
– StillBuggin
@Johndoe, its application is not WEB. It is a Windows Forms desktop application. To solve this, you need to place Firebird access Dlls on each machine. Also, in your EXE, you should point the connection string to the server where the database will be. After you identify everything you need to run on a machine, make an installer to make it easy.
– cantoni
To connect locally use a string with these parameters: User=SYSDBA; Password=masterkey; Database=C: BANCO.fdb; Datasource=localhost; Port=3050; Dialect=3; Charset=WIN1252; Role=; Connection Lifetime=0; Connection timeout=15; Pooling=True; Packetsize=16384; Server Type=0;
– André Morais Martins
@Andrémoraismartins, it can’t be localhost. You are using Localhost because you are developing on the same machine where Firebird is running. Since you will have a scenario where Firebird will run on one machine and the others will have access to it, then your connection string should change. Your Datasource, therefore, should be the IP or DNS of the machine where FB is running.
– cantoni
Oops! Sorry, you guys!!!
– StillBuggin
Guys, I did a test here on another app and it apparently worked! In the connection string I changed these parameters: Database= BANCO.fdb; Datasource=192.168.0.103; Thank you very much!
– André Morais Martins
@Andrémoraismartins, posted an answer, please check if you answer.
– cantoni