[Pianod] web client how to?
Perette Barella
perette at barella.org
Sun Feb 3 06:00:32 PST 2013
Hi Peter,
> Okay, so I'm running wsgw on 8000; I think it's working as it runs without complaining and if I try to connect my browser to http://localhost:8000 it spins forever, which I interpret as it is finding something there but not what it expects... On the other hand, I don't get any feedback running wsgw with -h -l, so maybe something is wrong?
Before starting wsgw, try telnet localhost 8000 (Use telnet, I don't think netcat gives the error). You should get a connection refused message; if not, there's something else there. I expect there's not because wsgw would have complained, but since it's new software and you're not getting output even with -l -h let's not trust it.
If that's good startup wsgw. ps -ef | gre wsgw and you should have one instance of it running. Now either telnet or netcat localhost 8000. If you ps -ef | grep wsgw, you should see two wsgw running now. To test wsgw, using ^J for newlines instead of <enter>:
GET /foobar HTTP/1.1
<blank line>
You should get back:
HTTP/1.1 403 Forbidden
If that works, then wsgw is running/responding to HTTP requests.
Let me know on that stuff, I'll try to think how to debug further along.
Perette
>
> Then I try to log onto your web client page and put my local address 192.168.0.xxx:8000 in but it doesn't respond.
>
> Turning off firewall completely doesn't help.
>
> Here's my wsgw line:
> ./wsgw -h -l pianod,localhost,4445,text,never
>
> And I am running pianod on the default port. I haven't set up the persistent users yet though, so just using the ones created in my startup script.
>
> Thoughts, or do I have to debug wsgw more? Maybe I should build it on a Mac to see if that works.
> Thanks,
> P
>
>
> On 02/02/2013 06:55 PM, Perette Barella wrote:
>> You should be able to run the client from the website, just put in your local address for the server in the login window. WebSockets don't implement origin restrictions like XmlHttpRequest (?!). But if you really do want to run it locally, wget or curl it to a local web server.
>>
>> The only thing you need locally is wsgw to "shim" between websockets & pianod.
>>
>> Perette
>
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
More information about the Pianod
mailing list