Hi unusual problem with ports.
I've been using port 80 and 8443 (SFS 2.13) plus the usual 9933.
I'd like to switch from 8443 to 443 as this is not used by anything else.
If I change this in SmartFox server it starts but the client can't connect (client changed to use 443 as the secure port).
I've tried adjusting ssl.ini settings in start_d and got nowhere, it's like it's hard-coded to 8443.
I should add it's all been working fine with a real ssl certificate, just on the wrong port.
Please help, thanks.
Fails to connect on port 443
Re: Fails to connect on port 443
If the underlying OS is Linux you must be root to use ports below 1024.
I suspect that might be the issue.
Cheers
I suspect that might be the issue.
Cheers
Re: Fails to connect on port 443
I think I might have cracked it - IIS by default sets the firewall to "System" for port 443. Adding another firewall rule seems to have got it working. Thanks!
Re: Fails to connect on port 443
Right, I think I'm getting somewhere now. Thanks for your help.
What remains is that I'd like to run another service on the same server and using the same port (443). This is for websockets / web not sockets which is working fine on 9933.
I have 2 options:
1) Find a way to force SmartFox / Jetty to only listen on a specific hostname
2) Add another IP address to the server, and then find a way to force SmartFox / Jetty to only listen on a specific IP address
If they don't work then I'll need to set up multiple servers which makes things a bit more complicated.
I have tried reverse proxy options and they don't really do what I want.
What would you recommend?
What remains is that I'd like to run another service on the same server and using the same port (443). This is for websockets / web not sockets which is working fine on 9933.
I have 2 options:
1) Find a way to force SmartFox / Jetty to only listen on a specific hostname
2) Add another IP address to the server, and then find a way to force SmartFox / Jetty to only listen on a specific IP address
If they don't work then I'll need to set up multiple servers which makes things a bit more complicated.
I have tried reverse proxy options and they don't really do what I want.
What would you recommend?
Re: Fails to connect on port 443
Only one service can liste on a TCP port, per network card.
So if you absolutely need two services on the same exact port, two NICs is probably best.
cheers
So if you absolutely need two services on the same exact port, two NICs is probably best.
cheers
Re: Fails to connect on port 443
Okay, good. How do I specify which NIC for the embedded webserver in SmartFox to use?
Thanks
Thanks
Re: Fails to connect on port 443
In this case you will have to manually bind the private IP of the NIC that you want to use.
Let's say the IP is 10.0.0.2
Edit the http.ini file under SFS2X/lib/jetty/start.d/ and add this line:
save and restart
For HTTPS you can do the same in the ssl.ini file, with this line:
cheers
Let's say the IP is 10.0.0.2
Edit the http.ini file under SFS2X/lib/jetty/start.d/ and add this line:
Code: Select all
jetty.http.host=10.0.0.2
save and restart
For HTTPS you can do the same in the ssl.ini file, with this line:
Code: Select all
jetty.ssl.host=10.0.0.2
cheers
Re: Fails to connect on port 443
All set up and sorted now with SmartFox sharing a port with another service using 2 IP addresses. Thanks for your help.
Who is online
Users browsing this forum: No registered users and 94 guests