Comments (10)
Did you change the ip address in `public/js/index.js' also?
from demo-chat.
@khelle yeah I too, try change index.js listen to external ip, what is wrong?
from demo-chat.
Could you please link me the changes you made, so I can try to detect the problem?
from demo-chat.
I change localhost:6080 to ip:6080, and run server and client again. what's wrong with the way I? 😄
from demo-chat.
I suspect this is the problem with origin or ip filtering. If you provide me your changed files I could ensure that everything is configured properly and the bug is on the kraken side, so then I would be able to run tests and fix it.
from demo-chat.
I'm only change this.connection.ws = new WebSocket("ws://localhost:6080/chat");
to this.connection.ws = new WebSocket("ws://192.168.1.164:6080/chat");
and restart kraken server and kraken client.
and i'm visit link 192.168.1.164:6080 not working.
from demo-chat.
Sorry. I left this environment. I unable to recreate it.
from demo-chat.
@zhiephie I believe lines 157-159 in Kraken\Netwok\Http\Component\Router\HttpRouter
might be an issue. Could you try changing them from:
$this->checkOrigin ? [] : [ 'Origin' => $this->host ],
[],
$this->checkOrigin ? '' : $this->host
to
!$this->checkOrigin ? [] : [ 'Origin' => $this->host ],
[],
!$this->checkOrigin ? '' : $this->host
And tell me if this helped?
from demo-chat.
@khelle Thanks worked 😄
from demo-chat.
Glad to hear that. I will provide these fixes to 0.3.2
release, but until then you have to keep these lines changed in your instance for it to work properly :)
from demo-chat.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demo-chat.