question

Gerald avatar image
0 Likes"
Gerald asked Gerald answered

Issues setting up HTTPS for FlexSim webserver and connecting to it.

I am attempting to set up the webserver to use HTTPS, as seen in this post: https://answers.flexsim.com/questions/127966/flexsim-webserver-support-https.html. I have uncommented the mentioned lines of code and set the path to the certificate and the key files, and set the port to 443 as suggested in one of the comments. I can start the webserver, but there is an error, as shown below. When I attempt to get to the server from the URL we set up on the local machine everything works fine. However, when I attempt to get to the server from a machine not on the same system as the Webserver I can not connect. I get the timeout error message. Any help will be apprciated. I am using version 22.2.0


1696444971834.png

FlexSim 22.2.0
flexsim webserver
1696444971834.png (31.7 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

@Gerald,

Did you try connecting to the webserver from the 2nd PC before configuring SSL? Did it work then, but started failing after enabling SSL?

If the webserver's browser interface loads properly locally from a browser on the same system as the webserver, but not from a 2nd computer, that sounds like a firewall issue. In that case you could try turning off Windows Firewall on the webserver to test from a 2nd PC. If that fixes the issue, you'll want to re-enable the firewall but create exceptions to allow the webserver to communicate through the firewall.

Help me understand how your screenshot relates to the problem you describe. Does this error show after you start the webserver? After you connect from the local PC? After you connect from a 2nd PC?


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @Gerald,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

·
Gerald avatar image
0 Likes"
Gerald answered

Sorry for the slow reply. It was a firewall issue. I had to make rules to allow port 443 to receive messages. This fixed the issue.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.