<?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>FreeMASTERのトピックWebSocket connection to 'ws://localhost:41000/' failed</title>
    <link>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1745880#M1519</link>
    <description>&lt;P&gt;"Hello everyone,&lt;/P&gt;&lt;P&gt;I'm currently working on a tutorial titled '&lt;A href="https://www.nxp.com/design/training/introduction-to-freemaster-dashboard-coding-using-html-javascript-activex-and-json-rpc:TIP-INTRO-FREEMASTER-CODING" target="_self"&gt;Introduction to FreeMASTER Dashboard Coding Using HTML, JavaScript, ActiveX, and JSON-RPC.&lt;/A&gt;' During this project, I encountered an issue when attempting to read variables from my NXP board using the JSON-RPC method. The problem surfaced when I tried to open an HTML file in the Chrome browser, and upon inspecting the developer tools, I received the following error message: (freemaster-client.js):161 WebSocket connection to 'ws://localhost:41000/' failed. Subsequently, my JavaScript code threw an error with a status code of 1006.&lt;/P&gt;&lt;P&gt;I have tried various troubleshooting methods, but I have not been able to resolve the issue. If anyone has insights or suggestions on how to address this WebSocket connection error, I would greatly appreciate your guidance.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 10:34:27 GMT</pubDate>
    <dc:creator>Jayakanth</dc:creator>
    <dc:date>2023-10-25T10:34:27Z</dc:date>
    <item>
      <title>WebSocket connection to 'ws://localhost:41000/' failed</title>
      <link>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1745880#M1519</link>
      <description>&lt;P&gt;"Hello everyone,&lt;/P&gt;&lt;P&gt;I'm currently working on a tutorial titled '&lt;A href="https://www.nxp.com/design/training/introduction-to-freemaster-dashboard-coding-using-html-javascript-activex-and-json-rpc:TIP-INTRO-FREEMASTER-CODING" target="_self"&gt;Introduction to FreeMASTER Dashboard Coding Using HTML, JavaScript, ActiveX, and JSON-RPC.&lt;/A&gt;' During this project, I encountered an issue when attempting to read variables from my NXP board using the JSON-RPC method. The problem surfaced when I tried to open an HTML file in the Chrome browser, and upon inspecting the developer tools, I received the following error message: (freemaster-client.js):161 WebSocket connection to 'ws://localhost:41000/' failed. Subsequently, my JavaScript code threw an error with a status code of 1006.&lt;/P&gt;&lt;P&gt;I have tried various troubleshooting methods, but I have not been able to resolve the issue. If anyone has insights or suggestions on how to address this WebSocket connection error, I would greatly appreciate your guidance.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 10:34:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1745880#M1519</guid>
      <dc:creator>Jayakanth</dc:creator>
      <dc:date>2023-10-25T10:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: WebSocket connection to 'ws://localhost:41000/' failed</title>
      <link>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1745891#M1520</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we have not heard about this issue before. I wonder if there could be a firewall which prevents connection to the localhost TCP port.&lt;/P&gt;
&lt;P&gt;Very quick test is to run FreeMASTER and run "telnet localhost 41000" in a 'cmd' command line.&amp;nbsp; If you get a connection error, then I would bet someone (firewall) blocks the connection. If telnet connects well, then it will be an issue of Chrome engine and we will need to analyze it further.&lt;/P&gt;
&lt;P&gt;Note: in telnet, a successful connection means you will get a blank screen without errors. By typing { } as an empty/invalid JSON-RPC command, you should get a response something like:&lt;/P&gt;
&lt;PRE&gt;{"jsonrpc":"2.0","id":"","error":{"code":-32600,"message":"Unknown error"}}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Regards,&lt;BR /&gt;Michal&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 11:06:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1745891#M1520</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2023-10-25T11:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: WebSocket connection to 'ws://localhost:41000/' failed</title>
      <link>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1746705#M1522</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34487"&gt;@MichalH&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;We tried running the command 'telnet localhost 41000,' and it resulted in a black screen with the cursor positioned in the top left corner. When we attempted to type '{}', it immediately exited the black screen, preventing us from entering any commands. We initially suspected a firewall issue and even uninstalled the McAfee antivirus software, but the problem persisted.&lt;BR /&gt;It's worth noting that the same code and command work on different devices without any issues. As a result, we are currently at a loss and would appreciate any additional hints or troubleshooting suggestions.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 07:04:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1746705#M1522</guid>
      <dc:creator>Jayakanth</dc:creator>
      <dc:date>2023-10-26T07:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: WebSocket connection to 'ws://localhost:41000/' failed</title>
      <link>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1746758#M1523</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;please make sure that also the built-in Windows firewall is temporarily disabled to rule out that this is the issue.&lt;/P&gt;
&lt;P&gt;Another experiment would be to run the FreeMASTER &lt;EM&gt;pcmaster.exe&lt;/EM&gt; process with an argument &lt;STRONG&gt;/rpcs 50000&lt;/STRONG&gt; or a different port number and test it with telnet. Maybe the default 41000 is blocked by another process.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know the result,&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Michal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 07:25:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1746758#M1523</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2023-10-26T07:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: WebSocket connection to 'ws://localhost:41000/' failed</title>
      <link>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1748075#M1524</link>
      <description>Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34487"&gt;@MichalH&lt;/a&gt;,&lt;BR /&gt;I would like to express my gratitude for your support. It was a firewall issue that blocked Freemaster. I solved it by allowing the Freemaster main executable in Windows Defender Firewall, as a result, it began functioning correctly.</description>
      <pubDate>Sat, 28 Oct 2023 04:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/WebSocket-connection-to-ws-localhost-41000-failed/m-p/1748075#M1524</guid>
      <dc:creator>Jayakanth</dc:creator>
      <dc:date>2023-10-28T04:32:08Z</dc:date>
    </item>
  </channel>
</rss>

