Standalone web on windows problem

I’m trying to test a standalone web app on windows for the ssl thread here on the forums and I’m having problems getting it running.

I’m using the LoginExample from xojo, I can run it in the IDE and connect to it without issue.

I went into build settings, unticked all the rest and ticked only Windows and built the project. I opened a command prompt in the build folder and ran:

LoginExample.exe --port=8080

The program looks like its waiting for a response, so I switch to my browser and try to web to http://127.0.0.1:8080/ It tries to connect and nothing comes back.

Am I doing something wrong? Do I need to install any pre-req’s (I doubt it as its run from the IDE without issue)

I’ve give the exe permission in the firewall on my machine and that has made no difference.

I know its starting to connect as it just sits there spinning the connecting icon. If I close the program down when its doing this, the browser instantly returns an error.

I must be doing something wrong that is stupidly simple, but I’ve never use xojo web before.

Thanks in advance, I need to get this tested so I can report back on the SSL thread.

Try

Http://localhost:8080/

Same, nothing.

http://127.0.0.1:8080/ and http://localhost:8080/ both work when running from the IDE.

I know the standalone is opening the ports and the connections are attempted there because I can see it all on TCPView, just nothing is coming back as can be seen in Chrome devtools overview (F12) Network tab.

Tried in IE also, same problem.

Hm. If you look in the task manager, is the app using lots of CPU?

Also, does an empty project work?

Also have you tried using the local IP address instead?

Ah, I bet I know what it is…

When you built the app, did you change the Deployment Type from CGI to Standalone? You can check by looking in the build folder and see if you ended up with a script named loginexample.cgi. If you did, the app is waiting for a connection from that script.

To Fix: Delete the build folder, go back to the IDE, change the Deployment Type (in Shared Settings) to Standalone, Change the Listening Port to 8080 and rebuild.

That is it! Thank you Greg. Deployment Type to Standalone!