lulzyyy / lulzyOgar

A fully functional open source c0nsume.me server implementation, written in Node.js. Ogar is designed to be used with the c0nsume.me client.
MIT License
3 stars 4 forks source link

how do i connect this to my website using a vps? #2

Open aqweqwel123 opened 8 years ago

lulzyyy commented 8 years ago

what website? maybe iframe? <iframe src="http://c0nsume.me/private.php?ip=YOUR_IP:600" style="border: 0; position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%" />

change YOUR_IP to your ip address and put this in your page code btw is your server public? give mi the link

aqweqwel123 commented 8 years ago

can i get ur skype? or something i can private messaage you on?r

lulzyyy commented 8 years ago

let's just talk here

aqweqwel123 commented 8 years ago

okay well i have not set my sight up yet but i have a ovh.com webhost and it keeps giving me a error so can u try to help me set it u p?

lulzyyy commented 8 years ago

what error?

aqweqwel123 commented 8 years ago

thats why i wanted to skype so its instant so we can instant msg eachother

aqweqwel123 commented 8 years ago

1 sec let me get back on it

aqweqwel123 commented 8 years ago

[root@vps81601 ~]# cd lulzyOgar/src [root@vps81601 src]# forever index.js warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms Starting server... [Game] Listening on port 600

aqweqwel123 commented 8 years ago

no error now but how do i connect to it?

lulzyyy commented 8 years ago

what is your ip? https://www.whatismyip.com/

aqweqwel123 commented 8 years ago

do i use my vps ip? or my actual ip

lulzyyy commented 8 years ago

vps

aqweqwel123 commented 8 years ago

okay my vps ip is 149.56.141.57

aqweqwel123 commented 8 years ago

do i need to go into the settings and pit 1 for vps?

lulzyyy commented 8 years ago

http://c0nsume.me/private.php?ip=149.56.141.57:600 start the server and tell me if it works

aqweqwel123 commented 8 years ago

it is started

lulzyyy commented 8 years ago

hmm i cant connect...

aqweqwel123 commented 8 years ago

exactly do i need to change vps to 1 in settings?

lulzyyy commented 8 years ago

maybe it's your firewall blocking the connection? what system do you use on your vps?

yeah try it and tell me port

aqweqwel123 commented 8 years ago

is the port not 600?

lulzyyy commented 8 years ago

yes port is changing

lulzyyy commented 8 years ago

or try to change port to 443 maybe

aqweqwel123 commented 8 years ago

how do i get port?

lulzyyy commented 8 years ago

change vps to 1 in settings tell me what port from console ([Game] Listening on port xxx)

aqweqwel123 commented 8 years ago

it doesnt tell me it gives me a error

lulzyyy commented 8 years ago

no wait it gives an error...

aqweqwel123 commented 8 years ago

[root@vps81601 ~]# cd lulzyOgar/src [root@vps81601 src]# node index.js Starting server... /root/node_modules/ws/lib/WebSocketServer.js:44 throw new TypeError('port or a server must be provided'); ^

TypeError: port or a server must be provided at new WebSocketServer (/root/node_modules/ws/lib/WebSocketServer.js:44:11) at GameServer.start (/root/lulzyOgar/src/GameServer.js:579:25) at Object. (/root/lulzyOgar/src/index.js:25:12) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Function.Module.runMain (module.js:447:10) at startup (node.js:142:18) at node.js:939:3 [root@vps81601 src]#

lulzyyy commented 8 years ago

try to change port to 443

aqweqwel123 commented 8 years ago

keep settings for 1?

lulzyyy commented 8 years ago

no

aqweqwel123 commented 8 years ago

k it says listing on port 443

aqweqwel123 commented 8 years ago

[root@vps81601 src]# node index.js Starting server... [Game] Listening on port 443

lulzyyy commented 8 years ago

what system do you use on vps? windows? linux?

aqweqwel123 commented 8 years ago

as in like what os?

aqweqwel123 commented 8 years ago

Centos 6 (64 bits)

lulzyyy commented 8 years ago

hmm I'm using Debian 8 on my vps...

ok turn off the sever and as administrator, type these commands

service iptables save service iptables stop chkconfig iptables off

it will disable the firewall... and then start the server again

aqweqwel123 commented 8 years ago

like in the command?

lulzyyy commented 8 years ago

yea

service iptables save service iptables stop chkconfig iptables off

aqweqwel123 commented 8 years ago

and restart?

lulzyyy commented 8 years ago

after executing these commands start the server

aqweqwel123 commented 8 years ago

can u do it for me? as in if i give u the info?

aqweqwel123 commented 8 years ago

cause its not working

lulzyyy commented 8 years ago

ok

aqweqwel123 commented 8 years ago

private message?

aqweqwel123 commented 8 years ago

somewhere?'

lulzyyy commented 8 years ago

wait

lulzyyy commented 8 years ago

maybe just change the operation system to Debian 8? it will be much easier for me.

aqweqwel123 commented 8 years ago

how do i change it>?

aqweqwel123 commented 8 years ago

nvm i got it , its gonn a take some time tho

lulzyyy commented 8 years ago

in your vps settings, in ovh account