Run wepapp local on desktop?

  1. 4 years ago

    Lars L

    10 Aug 2015 Pre-Release Testers, Xojo Pro Europe (Germany, Chemnitz)

    Hi,

    is it possible to run a webapp local on a desktop (not on a webserver) like the IDE does.

    It seems, that the IDE creates a lokal webserver on debuging - is that also possible in "real time"?

    Background:
    I've got a nice webapp, but a customer wants to install it local on its PC.

    Thanks!

    I got it! I had to use "localhost", instead of "127.0.0.1"

  2. Sunil A

    10 Aug 2015 Pre-Release Testers, Xojo Pro Kuwait

    It's absolutely possible. Build the app for the preferred OS and then run the executable. Its as simple as you run from the debugger. But for building an app you need to purchase Xojo.

  3. Lars L

    10 Aug 2015 Pre-Release Testers, Xojo Pro Europe (Germany, Chemnitz)

    hhmmmm,

    so if I build it and run, yea, the console-app is running. But I can't connect over the specified IP.

  4. Lars L

    10 Aug 2015 Pre-Release Testers, Xojo Pro Answer Europe (Germany, Chemnitz)

    I got it! I had to use "localhost", instead of "127.0.0.1"

  5. Wayne G

    10 Aug 2015 Pre-Release Testers, Xojo Pro New Zealand axisdirect.nz

    It is also possible to share that WE app by opening the port in the firewall. Just be aware that MS limit the number of connections to a workstation (10 I believe) which is not very many users at all in WE, but for a 2-3 user system it's fine.

  6. Eric W

    10 Aug 2015 Pre-Release Testers, Xojo Pro

    You can also run multiple web servers on the same machine by specifying different port numbers. e.g. http://127.0.0.1:50000

  7. Lars L

    12 Aug 2015 Pre-Release Testers, Xojo Pro Europe (Germany, Chemnitz)

    running multiple web servers is a good way. So I only have to write a little launcher-app. This app can decide which user uses which port.

    But using SQLite could be more difficult...

  8. olivier v

    12 Aug 2015 Pre-Release Testers, Xojo Pro Europe (France)

    @Lars L But using SQLite could be more difficult...

    Not so much: http://www.sqlite.org/faq.html#q5

  9. Eric W

    12 Aug 2015 Pre-Release Testers, Xojo Pro
    Edited 4 years ago

    So I only have to write a little launcher-app.

    You could also use command line arguments to set the stand-alone Web app's ports, so even a batch file could do it.

  10. Matthew C

    12 Aug 2015 Pre-Release Testers Roanoke, VA - Spartanburg, VA

    This is a little old, but if you want to run as a service, you can do so by reading the following:

    (Windows Service)
    http://www.realsoftwareblog.com/2012/03/running-standalone-web-application-as.html

    (Linux Daemon ~ Works on Mac also, but the preferred method is launchd on Mac)
    http://www.realsoftwareblog.com/2012/03/daemonize-your-standalone-web.html

    If you want to run a launcher application without seeing the console(s), create a new shell class and execute the application from the shell class. To terminate the application use Shell.Close; as the process is attached to the active shell instance. You can also use a timer to check to see if the shell is still running and if not, restart the web application via shell.

    There's many options available. :-)

    By the way, (Lesson of the day)

    http://127.0.0.1:PortNumber and http://localhost:PortNumber should work the same, as localhost is an alias for 127.0.0.1

    You can also access the application at http://whateveryouwant:PortNumber by modifying the hosts file located at:

    C:\Windows\System32\drivers\etc\hosts (you will need to enable "view hidden files and folders" to view this file)

    This is the file that most adware/ad blockers use by simply setting the bad domains to 127.0.0.1, and not allowing the domain names to actually direct to their correct DNS entries :-)

    For instance my hosts file contains thousands of lines such as:

    127.0.0.1 www.007guard.com
    127.0.0.1 007guard.com
    127.0.0.1 008i.com
    127.0.0.1 www.008k.com
    127.0.0.1 008k.com
    127.0.0.1 www.00hq.com
    127.0.0.1 00hq.com
    127.0.0.1 010402.com
    127.0.0.1 www.032439.com
    127.0.0.1 032439.com

    of known malware sites, so that they can never be access from my PC :-) In the same token I could access a local web application by pointing to any one of the domains contained within, since they will only direct back to localhost/127.0.0.1. ~MacOS and Linux have a hosts file as well~ :-)

or Sign Up to reply!