Jump to content

Recommendations for hosting


paul.coshott

Recommended Posts

Hi All,

Does anyone have any recommendations for hosting for a uniGUI app and a Firebird 3 database?

To start with I'm looking for a really cheap solution just for beta testing with up to 5 businesses connecting.

And then a more robust solution that can handle plenty of connections.

So just looking for a hosting solution that will host uniGUI apps with a Firebird 3 server - 1 cheap and the other a more permanent solution.

Any thoughts?

Cheers,
Paul

Link to comment
Share on other sites

Hello Paul

1. You can  create your own free server hosting (very easy) at home. That wokrs fine. Will try to find the step by step post in the forum and come back here...

 

2. For professional hosting you can try : cheap and great.

www.Contabo.com

Regards

Link to comment
Share on other sites

Hello Paul,

I did not retreive it, but i will explain here,
step by step, what i did with my free home server (This work from Oct 2015 without problem).


A. Introduction

1.The first thing is how to start an Unigui application:
- either via IIS (ISAPI dll): MyIP_ServerAdresss / MyAliasFolder / MyApplication.dll
- Or via Service: MyIP_ServerAdresss / MyApplcation: MyPort (MyPort = 8077, 8078, 8079 ...)

Follow the deployment steps in the Developer Manual: http://www.unigui.com/doc/online_help/deployment.htm

(My preference, today (May 2019) goes for the Service.
Since August 2018  use  the FMSfot HyperServer technology
and the Hyperserver requires a Standalone Application: it's very simple to set up
Follow the steps: http://www.unigui.com/doc/online_help/hyperserver.htm)


2. Once your application launches well on your Development Station,
you can then deploy it on a good PC (i5, 8 GB RAM, preferably Windows Server Edition)
On ebay, you can have Genuine Windows Server Edition Licenses for € 8.
Do not forget to install the Runtime on this PC:
FMSoft_uniGUI_Complete_runtime_1.90.0.1501.exe (May 2019)


3. Now connect this PC (server) to the internet via a simple modem.

4. Open your favorite browser and tape: MyIP
You will find your Internet IP address: xx.xx.xxx.xx

5. This IP address is not that of your PC (server), but that of your Modem (telephone line)
So if you try to launch your application from a smart phone connected to the internet from a chip (not wifi)
for example: xx.xx.xxx.xx / MyApplcation: MyPort
This should give you the homepage of your Modem and you will not see your application launch!

The Solution and this is the most important step:
Tell your MODEM that this IP address (xx.xx.xxx.xx) should point to your PC (server).
To do this :
5.1 Assign a static address to your PC (Server): example 192.168.1.2 (see picture)
5.2 Enter your MODEM via Browser: 192.168.1.1
5.3 Look for something like: Advanced
5.4 DMZ> NAT
5.5 DMZ: Activated
5.6 Assign: the pointing address: 192.168.1.2
5.7 Save and Restart your Modem.
End.

Now your modem, as soon as it is called xx.xx.xxx.xx, from the outside, it will point to your PC (Server)    

6. Test from a smart phone connected to the internet from a chip (no wifi)
for example: xx.xx.xxx.xx / MyApplcation: MyPort
And it will work :)

7. Do not forget to install a good UPS, voltage stabilizer to your PC (Server).

END.

 

 

B. Fixing IP adress

Now,  your internet IP adress points to your PC (Server) OK.  But  this IP adress remains 24 h only and will automatically change tomorrow.

Solution :

Solution 1.

Buy from your ISP  (Interner Service Provider)  a dedicated  IP adress Static.     Generally ISP  is your National Company (internet). 

1.1  Run your Unigui Application like this :   

- ISAPI           :  yy.yy.yyy.yy/MyAliasFolder/MyApplication.dll
- Or  Service :  yy.yy.yyy.yy/MyApplcation:MyPort     (MyPort = 8077, 8078, 8079 ...)

1.2  or smooth call :

- ISAPI           :  MyDomaineName.com/MyAliasFolder/MyApplication.dll
- Or  Service :  MyDomaineName.com/MyApplcation:MyPort (MyPort = 8077, 8078, 8079 ...)

 

For a smooth call (Edited 26/12/2020)

Buy a Domain Name  MyDomaineName.com   AND  ASSOCIATE  it  -->  to your IP Static   yy.yy.yyy.yy 

From  providers like (Goddady, NameCheap,...)

How ?  see  this topic  

 http://forums.unigui.com/index.php?/topic/11906-redirect-url-to-other-webapplication/&do=findComment&comment=87072    

 

 

Solution 2.

Use a Free DNS  like NoIP or my prefered Dynu dns :  https://www.dynu.com/

2.1  Sign Up  and follow the steps 

2.2  Download their great tool   Dynu IP Update Client   this will capture your daily dynamic IP adress and fixed it as an alias

Example :   YourSubDomaine.dynu.net   point always to your PC (server)

2.3.  Run your Unigui Application like this :   

- ISAPI           :  YourSubDomaine.dynu.net/MyAliasFolder/MyApplication.dll
- Or  Service :  YourSubDomaine.dynu.net/MyApplcation:MyPort (MyPort = 8077, 8078, 8079 ...)

 

Have fun

Best Regards  :)
 

IP_Static.png

  • Like 4
  • Upvote 1
Link to comment
Share on other sites

  • 4 weeks later...

Hello Friends,


Using Unigui Application on a server for production, requires some installations and settings.
You have to install on this server : 
- your RDBM 
- UniguiRuntime
- HyperServer_Config
- your Service 
- Your  Application
- Start Service
- Allow FireWall (port 8077 .... + yourapplication)


Here is an easy way to do it :

In this example we use FireBird as RDBM and hyperserver  as Service.
====================================================

1. Compile and build this program (Install.dpr)    
2. Copy on  CD\Res   your 4 exe files  :

example :

- Firebird server    :   Firebird-3.0.3.32900_0_x64.exe
- Unigui  RunTime :   FMSoft_uniGUI_Complete_runtime_1.90.0.1503
- HyperServer       :    FMSoft_uniGUI_HyperServer_Config_1.90.0.1503.exe
- Your Application Installer (use for example InnoSetup)  and name the output :  H.exe

3. adjust  the  CD\Res\Config.ini  :
VApplication = 1.00                  ( this is yourApplication version)
VRuntime     = 1.90.0.1503
FBFile          = Firebird-3.0.3.32900_0_x64.exe

4. Run Install.exe
====================================================

 

Download link:

http://forums.unigui.com/index.php?/topic/14869-windows-service-issue-via-hyperserver/&do=findComment&comment=81109


Have fun :)
 

 

  • Like 2
  • Upvote 1
Link to comment
Share on other sites

  • 5 months later...

I have to say something about Contabo:

- for testing purposes it is usable and of course, is cheap

- for real production NOT recommended to use Contabo VPS, they not offer stable reurses. And it is more than clear that will never work stable. It is a simple reason that your VPS share common resources, and what actually get depend from current load of other VPS instances.

I used Contabo several years - mission impossible (Windows chrashes, migrating to other hosting systems, hanging from few minutes to 3 hours, funny support).

Based on my experience: For production use dedicated server or server on-premise.

Marko.

Link to comment
Share on other sites

  • 6 months later...

Hello Friends,

Here is a step by step ;

How to use an Unigui Application from both sides : internet and intranet (NAT Forwarding Port) :

 

Till now:
- We know how to use an Unigui application from a VPS server (internet),
- We know how to use an Unigui application from an intranet network (local customer server),

Now, how to view an Unigui application in both sides (internet and intranet)?


Step by step:
The example above is for an Unigui Application used as Hyperserver (Service).
we guess its port: 8099

 

1. First of all,

we have to open a port (NAT Forwarding Port) on the Router (or Modem ADSL).
You have many examples on youtube.
It is very simple. tell the router that, when port 8099 is called, it must redirect the call to the correct PC on the network.

 

image.thumb.png.73a5bbeee4937ed118145423d6fa746f.png

 

Example:
- The request http //: myDomaine.com:8099
   arrives on the router first.


- The router must direct it to my Unigui server (192.168.0.102)
  OK,  In the advanced settings of the router, Select  :

Port Forward

Add the Rule :

- WAN Connection  (important)  :   The Customer internet  Connection (FAI)    -->  Classical ADSL  or Dongle 3G    (Example here : pppoe_0_0_38)
- Ext Port START : 8099       Ext Port END: 8099            Int Port START : 8099       Int Port END: 8099   

- Local LAN  IP  : 192.168.0.102

- Custom Service : a caption to describe your rule (example My_Application)

 

1.png

2.png

 

 


2. Give all the authorizations necessary (important) for your application on the Server side

    here 192.168.0.102 :

2.1 Delphi> Project> Options> Manifest> Execution level: Require Administrator

2.2 Authorize the Firewall to accept your application:
      C: \ Program Files \ .... myApplication \ myApplication.exe (Public & Private)

2.3 Authorize the Firewall to accept your Hyper_Service:
      C: \ Program Files \ ... myApplication \ Hyper_Service.exe (Public & Private)

2.4  Add an Inbound Traffic rule to your PORT here 8099 (Public & Private)
2.4  Add an Outgoing Traffic rule to your PORT here 8099 (Public & Private)
2.5 Optionally add an exception to your application to windowsDefender.

________

See In attachment : UFireWall2.0

Have fun :)


FireWall_2.0.7z

  • Like 3
  • Upvote 1
Link to comment
Share on other sites

  • 6 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...