|
Post by redwizard75 on Jul 14, 2013 20:59:55 GMT -8
Hi, I've altered the config.py file changing the local IP to my Pi Local IP. I have allowed port 6900 through the firewall. When I run the command: python RasPiConnectServer.py I get the response. Of course, I cannot connect to the address, even with wget OR wget my.pi.ip.adress:9600/VersionAny ideas? Thank you in advance.
|
|
|
Post by swanseamick on Jul 14, 2013 22:08:38 GMT -8
redwizard75,
I too have this problem, (posted under RasPiConnectServer), but can talk to my Pi on its correct IP address, (192.168.1.89)
From PC browser, entering address 'http://192.168.1.89:9600/Version' and I get correct response back from Pi: "RasPiConnect Server Version 2.5". At same time, Pi displays IP of calling PC with message stating call was OK (along the lines "192.168.1.77:32730 -- [200] OK." Browsing RaspPiConnectServer.py, I spotted a class 'Version', which returns the above response, which explained why using lower cased v in version, I got response "None", and error message on Pi saying method not found.
I'm now waiting too, to see why I get response 0.0.0.0:9600 when server starts.
Hope this helps
Mick
|
|
|
Post by SDL on Jul 15, 2013 10:41:14 GMT -8
Hi Redwizard and Mick, Yes, web.py starts up with a message like: which means that the server is listening on all interfaces. You can verify this using netstat -ntpl It is a quirk of the web.py library. Check your ip address in your config file. Oh and Mick, we agree that it is ridiculous to have "Version" be case sensitive (what a waste of your time to find that one), so we will now respond to "/version" in the new version (2.6 - not released yet). BP
|
|
|
Post by swanseamick on Jul 15, 2013 10:53:36 GMT -8
BP
It was my mistake using version instead of Version. I knew Linux and Python were case sensitive, so should have known better.
However, if you can get round it, so much the better.
Mike
|
|
|
Post by swanseamick on Jul 16, 2013 23:29:12 GMT -8
Redwizard & BP
To put my mind at rest that I had set LOCALURL correctly in Config.py, I made a small change to Config.py, adding a print statement immediately after setting LOCALURL.
LOCALURL = "http://192.168.1.89:9600/" print LOCALURL
Now when I run RasPiConnectServer, I get an extra line printed at the Console as follows:
"http://192.168.1.89:9600/" "http://0.0.0.0:9600/
This confirms the value I set for LOCALURL in Config.py
Mike
|
|
|
Post by SDL on Jul 17, 2013 7:35:22 GMT -8
Mike,
We'll add that to our master copy of Config.py also.
BP
|
|