Jump to content

different Webserver and Database-connection via Internet to MASTER-SERVER


erich.wanker

Recommended Posts

Hello,

 

STATUS: Working-uniGui-App on Apache Webserver - connected with a Firebird Database 2.5 (zeosLib for Connection)

 

Every client should  have his own webserver InHouse ...

 

BUT:  i want to store some Informations and Images on MY Webserver - and share this for all client machines

 

Can i connect a firebird Database stable via Internet ? 

 

Thanx for informations

 

Erich

 

 

 

Link to comment
Share on other sites

Hi Erich,

 

direct connection via Internet is very slow. The only way is
to use zebedee.

http://www.firebirdsql.org/file/documentation/third_party_docs/firebird_zebedee.pdf

 

I have mutch good experience since many years with this tool.

 

The other way is to use datasnap, you can use it also with zeos.

 

best regards

 

Gerhard

Link to comment
Share on other sites

If you can work with other DB than Firebird, you can try Azure SQL Database (from Microsoft) : it works in Delphi just like a Microsoft SQLServer, but it is located in the cloud (Microsoft Datacenter).  Performance is very good and pricing is correct.

Link to comment
Share on other sites

Hello Gerhard,

 

thanx for your suggestion -> Zebedee..

 

Now i have a little problem:  I can not connect to the remote Firebird DB

 

 

i have a connection in Mainmodule: -> it should connect to machine 192.158.0.10 where the database is stored (running FB 2.5)

 

            UniMainModule.ZConnection2.Disconnect;
            UniMainModule.ZConnection2.HostName:='localhost';
            UniMainModule.ZConnection2.Port:=3051;
            UniMainModule.ZConnection2.Database:='c:\VersatileServer\Database.fdb';
            UniMainModule.ZConnection2.User:='xxx';
            UniMainModule.ZConnection2.Password:='xxx';
            UniMainModule.ZConnection2.Connect;
 
in "start_client.cmd" (runs on UniGui-Webserver 192.168.0.110)
            Zebedee 3051:192.168.0.10:3050
 
in "start_server.cmd" (runs on 192.168.0.10)
            Zebedee –s localhost:3050
 
 
Firewall is on both machines OFF
 
What make i wrong ???
 
ThanX for help
Erich

 

 

P.S.:

On the UniGui Webserver - Zebedee-Window shows: 

Zebedee 3051:192.168.0.10:3050

Zebedee(19500/18120): Listening on local port 3051

 

On the Database-Machine - Zebedee-Window shows: 

Zebedee us localhost:3050

Zebedee (4420/5996): Listening on local port 4791

Link to comment
Share on other sites

Hello Gerhard,

Thanx for your answer :-)

 

I am in my local networt for testing .. no router ... no firewall .. nothing blocks tcp/ip- communication on any port

 

i think, i make something wrong with the settings .. but did not find a solution or what i make wrong ... 

 

machine A

IP 192.168.0.110

Apache Webserver with unigui

Local installed firebird on port 3050

 

machine B

IP 192.168.0.10

Local installed firebird on port 3050

 

UniGui-App

2 connections in the MainModule

1st connection to localhost - port 3050 (for the Firebird Database on machine A)

2nd connection to localhost - port 3051 (for the Firebird Database on machine B) - via Zebedee

 

 

the http://www.winton.org.uk/zebedee/manual.htmlinfos are very strange for me ..

 

hope somebody can help

Nice greetings

Erich

  • Upvote 1
Link to comment
Share on other sites

  • 3 months later...
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...