Signalling server

Get help using Construct 2

Post » Tue Feb 28, 2017 12:01 am

Hi,

How can I set up a signalling server on my website. Using my website's hosting?

Is it possible, at all? Or I have to run it on my personal machine and re-direct my hostname to my IP, use portforwarding and all other crap that come with it. :?:


EDIT:
I found this https://www.a2hosting.com/kb/installable-applications/manual-installations/installing-node-js-on-managed-hosting-accounts is this the answer to my question?
B
17
S
2
Posts: 30
Reputation: 1,448

Post » Tue Feb 28, 2017 11:02 am

I would contact your host's support for information. The signalling server also has a readme with more information. However I'd recommend against hosting your own server if you're not sure how to do it - it is easy to set up a server which has worse connectivity than the Scirra one. For example unless you set up a secure server with TLS and certificates and all that, a proportion of users will not be able to connect.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,674

Post » Tue Feb 28, 2017 11:13 pm

Thanks for the reply Ashley.

I have SSL certificate on my hosting (it's godaddy). I don't think there will be a problem with connectivity or security or setting it up. I was just wondering if I can do it using my website's hosting. Or do I need a dedicated Linux/Windows/Mac machine with real IP. Or the other option of course Virtual Server.
B
17
S
2
Posts: 30
Reputation: 1,448

Post » Sat Mar 04, 2017 12:15 pm

Ok, so, I managed to install node.js and npm on my website's hosting. Using these instructions https://www.a2hosting.com/kb/installable-applications/manual-installations/installing-node-js-on-managed-hosting-accounts#Installation-prerequisites

However when I try to install the signalling server I bought from scirra I get an error/warning. The readme file states:
Code: Select all
Installing
==========

Install node.js from http://nodejs.org/ for Windows, Mac or Linux.

Once installed, install the dependencies with:

npm install ws
npm install colors



I have node.js and npm installed, but when I try to install ws I get the following output:
Code: Select all
[~]$ node --version
v6.10.0
[~]$ npm --version
3.10.10
[~]$ npm install ws
/home/username
`-- [email protected]
  `-- [email protected]

npm WARN enoent ENOENT: no such file or directory, open '/home/username/package.json'
npm WARN username No description
npm WARN username No repository field.
npm WARN username No README data
npm WARN username No license field.



Can anyone explain to me what's the issue here?
I didn't get any package.json with the signalling server from scirra.
B
17
S
2
Posts: 30
Reputation: 1,448

Post » Fri Mar 24, 2017 10:07 pm

Great, buy a signalling server from Scirra, and it will not work and you'll get NO support what-so-ever.
B
17
S
2
Posts: 30
Reputation: 1,448

Post » Fri Mar 24, 2017 10:34 pm

You might get better responsiveness by emailing [email protected] directly rather than leaving a post on the forums.

Although I don't understand why you would purchase the signalling server if you were not prepared to run it on your own dedicated server, especially since Scirra provides a high quality free one. All of these considerations were laid out very clearly on the store page.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Fri Jun 30, 2017 2:29 pm

Because it was cheap :D and I own a web site, why would I run my personal computer 24h and monitor constantly if my dynamic dns service is updating my IP. :)
B
17
S
2
Posts: 30
Reputation: 1,448


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests