I just deployed my project to a server running cPanel with Apache as the main web server. I setup SFS in /home/<user> and put the client in /home/<user>/public_html.
With WebSockets on it's default port of 8888, I was able to connect successfully and all worked great. However, I tried to have someone else connect and they were unable to. I asked them to check the log and they had the 'Is the server even running at all?' error message. So, as per the documentation, I tried changing to port to 80, 443, and 8080 but on all 3 of those - it fails to bind. I'm assuming this is because Apache/httpd is already listening on those ports...
So, what are my options?
Thanks,
- Devon
Can't connect...
Re: Can't connect...
If others can't reach your server over port 8888, I think you have a firewall preventing it.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: Can't connect...
Well, I was able to connect to the server... It's a VPS with a hosting provider, so it's not on my local network.
Re: Can't connect...
Hi,
It seems that it is the other user's firewall which is blocking the connection. If you ask him to test a flash example, can you confirm through the AdminTool that he's connecting through BlueBox? If he is, then his firewall is blocking the ports by default.
It seems that it is the other user's firewall which is blocking the connection. If you ask him to test a flash example, can you confirm through the AdminTool that he's connecting through BlueBox? If he is, then his firewall is blocking the ports by default.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Re: Can't connect...
I was assuming it was his firewall, which is why I was trying to setup web sockets on one of the default http ports. However, they're already being used by Apache. Hence the reason I'm asking what options I have...
Re: Can't connect...
Well, usually only port 80 and 443 are the only ports which you can assure that are always open.
As you need to run both the webserver and SFS, it is a common practice to run each one on a different machine. It also improves the performance of both servers, with dedicated machines.
As you need to run both the webserver and SFS, it is a common practice to run each one on a different machine. It also improves the performance of both servers, with dedicated machines.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Return to “SFS2X HTML5 / JavaScript API”
Who is online
Users browsing this forum: No registered users and 28 guests