<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic basic server problem (XDK and Intel Edison) in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/basic-server-problem-XDK-and-Intel-Edison/m-p/1087732#M64024</link>
    <description>&lt;P&gt;I'm not sure if the problem is related to XDK or the Edison.&lt;/P&gt;&lt;P&gt;If I use XDK/Edison combination to create a very simple server that listens on port 3000, &amp;nbsp;I get the "Server Listening on port 3000" message on the XDK console, but openning up a web browser to &amp;nbsp; localhost:3000 doesn't trigger the call back so I never see "Hello World". &amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;var http = require("http");&lt;/LI&gt;&lt;LI&gt;var server = http.createServer(function(req, res) {&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;res.writeHead(200, {"Content-Type": "text/html"});&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;res.end("Hello World");&lt;/LI&gt;&lt;LI&gt;});&lt;/LI&gt;&lt;LI&gt;server.listen(3000);&lt;/LI&gt;&lt;LI&gt;console.log("Server listening on port 3000");&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If I do the same thing on my Ubuntu host at a nodejs console, &amp;nbsp;it works as expected:&lt;/P&gt;&lt;P&gt;- See the Listening on Port 3000 message&lt;/P&gt;&lt;P&gt;- open a Chrome browser tab to &amp;nbsp;localhost:3000&lt;/P&gt;&lt;P&gt;- this yields the &amp;nbsp;"Hello World" Message.&lt;/P&gt;&lt;P&gt;Again, I don't know if it's related to the Edison or XDK so I figured I would run it by the experts &amp;nbsp;( that's you :c).&lt;/P&gt;&lt;P&gt;I can run basic node.js demos that use the console but seems like anything related to the network server, &amp;nbsp;does not work.&lt;/P&gt;&lt;P&gt;I assum the version of XDK is &amp;nbsp;3522 ? &amp;nbsp;(xdk_web_linux64_master_3522.tgz)&lt;/P&gt;&lt;P&gt;- Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2016 01:51:21 GMT</pubDate>
    <dc:creator>Gary_B_1</dc:creator>
    <dc:date>2016-09-23T01:51:21Z</dc:date>
    <item>
      <title>basic server problem (XDK and Intel Edison)</title>
      <link>https://community.intel.com/t5/Software-Archive/basic-server-problem-XDK-and-Intel-Edison/m-p/1087732#M64024</link>
      <description>&lt;P&gt;I'm not sure if the problem is related to XDK or the Edison.&lt;/P&gt;&lt;P&gt;If I use XDK/Edison combination to create a very simple server that listens on port 3000, &amp;nbsp;I get the "Server Listening on port 3000" message on the XDK console, but openning up a web browser to &amp;nbsp; localhost:3000 doesn't trigger the call back so I never see "Hello World". &amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;var http = require("http");&lt;/LI&gt;&lt;LI&gt;var server = http.createServer(function(req, res) {&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;res.writeHead(200, {"Content-Type": "text/html"});&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;res.end("Hello World");&lt;/LI&gt;&lt;LI&gt;});&lt;/LI&gt;&lt;LI&gt;server.listen(3000);&lt;/LI&gt;&lt;LI&gt;console.log("Server listening on port 3000");&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If I do the same thing on my Ubuntu host at a nodejs console, &amp;nbsp;it works as expected:&lt;/P&gt;&lt;P&gt;- See the Listening on Port 3000 message&lt;/P&gt;&lt;P&gt;- open a Chrome browser tab to &amp;nbsp;localhost:3000&lt;/P&gt;&lt;P&gt;- this yields the &amp;nbsp;"Hello World" Message.&lt;/P&gt;&lt;P&gt;Again, I don't know if it's related to the Edison or XDK so I figured I would run it by the experts &amp;nbsp;( that's you :c).&lt;/P&gt;&lt;P&gt;I can run basic node.js demos that use the console but seems like anything related to the network server, &amp;nbsp;does not work.&lt;/P&gt;&lt;P&gt;I assum the version of XDK is &amp;nbsp;3522 ? &amp;nbsp;(xdk_web_linux64_master_3522.tgz)&lt;/P&gt;&lt;P&gt;- Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 01:51:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/basic-server-problem-XDK-and-Intel-Edison/m-p/1087732#M64024</guid>
      <dc:creator>Gary_B_1</dc:creator>
      <dc:date>2016-09-23T01:51:21Z</dc:date>
    </item>
    <item>
      <title>As a quick note,  the reason</title>
      <link>https://community.intel.com/t5/Software-Archive/basic-server-problem-XDK-and-Intel-Edison/m-p/1087733#M64025</link>
      <description>&lt;P&gt;As a quick note, &amp;nbsp;the reason I am using XDK and the Edison, &amp;nbsp;rather than running the basic demos directly on my host, is because I like the Intel Editor and it's node.js awareness. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;I've gotten into the happen of creating the basic demo using XDK but then run the runs on my host. &amp;nbsp;However, &amp;nbsp;I would be interested in getting it to work with the Edison Board just for the sake of learning more about the board and tools.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 01:56:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/basic-server-problem-XDK-and-Intel-Edison/m-p/1087733#M64025</guid>
      <dc:creator>Gary_B_1</dc:creator>
      <dc:date>2016-09-23T01:56:29Z</dc:date>
    </item>
    <item>
      <title>When you do this experiment</title>
      <link>https://community.intel.com/t5/Software-Archive/basic-server-problem-XDK-and-Intel-Edison/m-p/1087734#M64026</link>
      <description>&lt;P&gt;When you do this experiment on your Ubuntu machine your server and client are on the same machine, that is why the browser talking to localhost works in that environment, because the "server" named "localhost" which is running your Node.js server code is present. However, when you do that on the Edison your browser is not running on the Edison. "localhost" always means the machine on which the app is running, but the browser is not running on your Edison, where your Node.js server code is running. You need to substituted the IP address of your Edison board instead of "localhost" in your browser URL. The XDK does not redirect anything from your development system to the Edison, it's just a convenient tool for getting code onto your Edison and for seeing debug output from the Edison, nothing more.&lt;/P&gt;

&lt;P&gt;BTW -- the editor inside the XDK is just the Brackets editor. You can also download and run it standalone.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 19:10:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/basic-server-problem-XDK-and-Intel-Edison/m-p/1087734#M64026</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-09-23T19:10:40Z</dc:date>
    </item>
    <item>
      <title>Hey Paul,</title>
      <link>https://community.intel.com/t5/Software-Archive/basic-server-problem-XDK-and-Intel-Edison/m-p/1087735#M64027</link>
      <description>&lt;P&gt;Hey Paul,&lt;/P&gt;

&lt;P&gt;That was it ... &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;I don't believe I missed that.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	GB&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 20:59:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/basic-server-problem-XDK-and-Intel-Edison/m-p/1087735#M64027</guid>
      <dc:creator>Gary_B_1</dc:creator>
      <dc:date>2016-09-23T20:59:10Z</dc:date>
    </item>
  </channel>
</rss>

