Raised This Month: $12 Target: $400
 3% 

[ANY] Webchat through websocket


Post New Thread Reply   
 
Thread Tools Display Modes
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-08-2016 , 07:30   Re: [ANY] Webchat through websocket
Reply With Quote #51

Quote:
Originally Posted by Pyc View Post
[...]
Code:
L 11/08/2016 - 13:10:31: SourceMod error session started
L 11/08/2016 - 13:10:31: Info (map "c5m1_waterfront") (file "errors_20161108.log")
L 11/08/2016 - 13:10:31: [SM] Native "Websocket_Open" reported: Unable to listen on socket to x.x.x.x:1000
L 11/08/2016 - 13:10:31: [SM] Displaying call stack trace for plugin "WebsiteChatRelay.smx":
L 11/08/2016 - 13:10:31: [SM]   [0]  Line 43, C:\Users\Arkarr\AppData\Roaming\spedit\sourcepawn\scripts\WebsiteChatRelay.sp::OnAllPluginsLoaded()
L 11/08/2016 - 13:10:36: Error log file session closed.
Thanks for the nice error report !
You have something else running on the port 1000, close that process or change the port to listen to using the cvar. (For exemple : 1457)
__________________
Want to check my plugins ?
Arkarr is offline
Pyc
Senior Member
Join Date: Jan 2014
Old 11-08-2016 , 07:49   Re: [ANY] Webchat through websocket
Reply With Quote #52

Quote:
Originally Posted by Arkarr View Post
Thanks for the nice error report !
You have something else running on the port 1000, close that process or change the port to listen to using the cvar. (For exemple : 1457)
doesn't help for me
I have game server and web page on vds (no different hosts)
I try set localhost and always this error
Pyc is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-08-2016 , 08:23   Re: [ANY] Webchat through websocket
Reply With Quote #53

Quote:
Originally Posted by Pyc View Post
doesn't help for me
I have game server and web page on vds (no different hosts)
I try set localhost and always this error
Try 127.0.0.1
__________________
Want to check my plugins ?
Arkarr is offline
Pyc
Senior Member
Join Date: Jan 2014
Old 11-08-2016 , 08:35   Re: [ANY] Webchat through websocket
Reply With Quote #54

Quote:
Originally Posted by Arkarr View Post
Try 127.0.0.1
I try localhost, 127.0.0.1, server ip, domain name, no difference
Pyc is offline
Pyc
Senior Member
Join Date: Jan 2014
Old 11-08-2016 , 08:37   Re: [ANY] Webchat through websocket
Reply With Quote #55

maybe needed set local ip on plugin in 43 line?
Code:
        ServerSocket = Websocket_Open(serverIP, GetConVarInt(CVAR_WebsocketPort), OnWebsocketIncoming, OnWebsocketMasterError, OnWebsocketMasterClose);
you have this on different hosts?

Last edited by Pyc; 11-08-2016 at 08:38.
Pyc is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-08-2016 , 08:46   Re: [ANY] Webchat through websocket
Reply With Quote #56

What ? I just tested my plugin locally, works fine. Also, of course 127.0.0.1 is not going to work... my bad. Can you print your IP with PHP and then check if it's the same as the game server IP ?
__________________
Want to check my plugins ?

Last edited by Arkarr; 11-08-2016 at 08:46.
Arkarr is offline
Pyc
Senior Member
Join Date: Jan 2014
Old 11-08-2016 , 08:53   Re: [ANY] Webchat through websocket
Reply With Quote #57

http://185.5.248.181/chat/index.php
game server have same ip
Pyc is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-08-2016 , 09:24   Re: [ANY] Webchat through websocket
Reply With Quote #58

Quote:
Originally Posted by Pyc View Post
http://185.5.248.181/chat/index.php
game server have same ip
Sorry, I meant the local IP, not the public one.
__________________
Want to check my plugins ?

Last edited by Arkarr; 11-08-2016 at 09:24.
Arkarr is offline
Pyc
Senior Member
Join Date: Jan 2014
Old 11-08-2016 , 09:33   Re: [ANY] Webchat through websocket
Reply With Quote #59

Quote:
Originally Posted by Arkarr View Post
Sorry, I meant the local IP, not the public one.
I use vds server, no local ip
Code:
ifconfig 
eth0      Link encap:Ethernet  HWaddr 52:54:00:7e:f0:12  
          inet addr:185.5.248.181  Bcast:185.5.251.255  Mask:255.255.252.0
          inet6 addr: 2a02:f680:1:1100::160/64 Scope:Global
          inet6 addr: fe80::5054:ff:fe7e:f012/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:480164 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1054415 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:52685209 (50.2 MiB)  TX bytes:239456694 (228.3 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3076 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3076 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:346878 (338.7 KiB)  TX bytes:346878 (338.7 KiB)
Pyc is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-08-2016 , 09:37   Re: [ANY] Webchat through websocket
Reply With Quote #60

Quote:
Originally Posted by Pyc View Post
[...]
Use the machine name then. It works too.
__________________
Want to check my plugins ?
Arkarr is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode