matapan Posted October 1, 2011 Share Posted October 1, 2011 I created a network resource which was created while my ISY was running firmware version 2.8.16. My system became unstable for some reason, and I restored an old backup which didn't contain the resource and then upgraded to firmware version 3.1.9. After recreating the network resource, I found that it would not run the command specified from the Admin Console. I tried the same URL in a browser and verified it works. What is the next step in identifying the problem? The URL looks something like this: http://localhost/~username/script.php?q=run The network resource definition looks like this: GET /~username/script.php?q=run HTTP/1.1 Host: localhost:80 Content-Length: 0 in Raw Text format. Link to comment
Michel Kohanim Posted October 2, 2011 Share Posted October 2, 2011 Hi matapan, localhost is how "your computer" refers to itself. So, you cannot use localhost as the host to which network resources are directed since localhost for ISY is ISY itself. What you need to do is to provide the IP address for your computer as the host parameter. With kind regards, Michel Link to comment
matapan Posted October 2, 2011 Author Share Posted October 2, 2011 When I had the resource successfully running in 2.8.16, the address used was not localhost but the computer's local IP address. This worked at that time, but no longer. Using the (Test) button at the bottom of the panel in the Admin Console, upon first invocation, I get a "Request Failed" error, with N/A showing in the Resource Response window. From my browser running locally, I can call the same URL and get a response. What is wrong here? Link to comment
Michel Kohanim Posted October 2, 2011 Share Posted October 2, 2011 Hi matapan, It's quite possible that your new security settings are blocking traffic to port 80. With kind regards, Michel Link to comment
matapan Posted October 8, 2011 Author Share Posted October 8, 2011 Interestingly enough, the firewall was blocking the network resource request from ISY. The same request works through Safari. What is the difference between the way a network resource request is made and how a browser makes the same request? Why does this work through the browser, but is blocked otherwise? Link to comment
Michel Kohanim Posted October 9, 2011 Share Posted October 9, 2011 matapan, The difference is the source of the request. In the case of Safari, the request is made from the same device (i.e. your computer). In the case of ISY, the request is made from ISY to your computer and thus there has to be rules in your MAC that allow traffic from ISY to communicate with services on your MAC. With kind regards, Michel Link to comment
matapan Posted October 11, 2011 Author Share Posted October 11, 2011 Thanks for the explanation! Link to comment
Recommended Posts