powered by Jive Software

Change port for SparkWeb not working

Hello,

I changed the port from the SparkWeb.html file

function jive_sparkweb_getConfig()
{
return {
server: “myserver.com”,
connectionType: “socket”,
port: “80”,
autoLogin: “false”
};
}

When I try to connect to a server who listens on port 80 I can’t log in from SparkWeb (the server works fine though, I can connect with Spark or Pidgin or another XMPP messenger).

If I try to connect to a server who listens on port 5222 it works fine.

So is SparkWeb just ignoring the line * port: “80”,* ?

It’s not a cookie issue, the server name is changing in the drop down if I change the “server” line.

Thanks for any help.

Maybe Flash is requiring a high port (after the 1024). What happens if you try some other, e.g. 85, 1001, till 1024. And is it working with 1025? You said that Spark is working. Do you mean you have changed default port on the server to 80 and you are specifying it in Spark’s connection settings?

Yes, I’ve changed the port in the connection settings of spark too, otherwise it wouldn’t connect, so the server is working propperly on port 80.

The thing is I MUST use port 80 for connecting to this server. Other ports are blocked for the people who needs to use SparkWeb.

Hi Razvan,

I think we have similar situation.

I am running OF 3.6.3 and Sparkweb 0.9 on the same Windows server and authenticate the user through AD.

I am able to connect to OF through Sparkweb on TLS/SSL connection and these are my setting:

  1. I enabled HTTP-BINDING and set HTTPS-Binfing to port 7443 (Default).

  2. I installed Apache with SSL certificate installed and I placed sparkweb folder content in the htdocs folder (Apache Document root).

  3. Then I modified the sparkweb index file (sparkweb.html) with this following entries:

function jive_sparkweb_getConfig()
{
return {server: “myserver.com”,
connectionType: “https”,
port: “7443”,
autoLogin: “false”,
policyFileURL: “xmlsocket://myserver.com:5229”
};
};

  1. Restart the OpenFire.

User connects to the web jabber (Sparkweb) through https://myserver.com and I can see the network stat on the user computer shows that the user’s computer connected to port 443 for initial login ONLY and then after passing the authentication process it is connected through port: 7443 while the browser still shows https connection.

I checked on the jabber session and found the sparkweb connection is Authenticated and using SSL/TLS connection.

My current issue:

Recently I have users who are in the restricted network which only allows certain outgoing connection ports and they do not allow outgoing traffice through port 7443. They suggested me to use port 80 and 443 which are currently used by Apache for Sparkweb connectivity.

Has anybody tried to change the HTTPS or HTTP binding port to 443 or 80? Or is there anybody who has same network situation and has a solution or suggestion?

Thanks in advance.

Charlie

Hey Charlie,

I have the same situation as you. Some of the users are on restricted networks and can’t go out on the default OF ports.

Did you ever find a solution?

-Josh

Hi Josh,

Nobody has responded to my posting before.

I ended up to use HTTP-bind on port 80 and use HTTPS connection to the login page. At least I secure the login connection through apache.

This is what I did:

  1. Change Apache HTTP port to port other than port 80 such as 9999 and leave HTTPS port to 443.

  2. Restarted Apache.

  3. Set HTTP-Bind on OF admin console to port 80

  4. Rename sparkweb.html in the Apache Doument root to index.html

  5. Modify the index file with this following entries:

function jive_sparkweb_getConfig()
{
return {server: “myserver.com”,
connectionType: “http”,
port: “80”,
autoLogin: “false”,
policyFileURL: “xmlsocket://myserver.com:5229”
};
};

  1. Restarted OF.

  2. Try to login to https://myserver.com/

Hope this help.

regards,

Charlie

Hey Charlie,

I did exactly as you say but can’t seem to get it working.

I am able to HTTPS to the “login page”, but it is unable to connect to the XMPP / OpenFire server. Looks like It sits there waiting for a response…

function jive_sparkweb_getConfig()
{
return {
server: “appserver”,
connectionType: “http”,
port: “80”,
autoLogin: “false”,
policyFileURL: “xmlsocket://appserver:5229”
};
}

What exactly does the policyFileURL thing do?

-Josh

joshua wrote:

What exactly does the policyFileURL thing do?

This line is describing how flash player should get crossdomain.xml from the server. This is a flash player security stuff, it needs to check crossdomain.xml before being able to login to a flash app.

In case you didnt read this. Maybe you’ll find something useful:

http://www.igniterealtime.org/community/docs/DOC-1553