-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connecting the client to a server outside localhost #37
Comments
Do you use correct server url? You should use host or ip address in url, not localhost in this case. |
OK, so maybe the client in the example should contain some expression that On Thu, Jan 3, 2013 at 6:58 PM, Nikita Koksharov
|
"automatically takes the correct url..." Could you provide the code example for this? |
Here is what I use: var serverpath = location.protocol=='file:'? On Sun, Jan 6, 2013 at 12:22 PM, Nikita Koksharov
|
Map server on ip or real domain, not localhost. |
Following the example on the readme, I built an example application with server and client. The client code in the readme is:
This worked well on my computer, but when I tried to deploy both client and server to another machine, and tried to access the client from my machine, it didn't work, because the "connect" looked for the server on my machine (which is, for the client, the "localhost"...)
Maybe this is a documentation issue - explain how to deploy a client-server application.
The text was updated successfully, but these errors were encountered: