<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>… from this screen shot, it does look like Junxiao using Chrome.</div>
<div><br>
</div>
<div>Omar, can you try Chrome?</div>
<div><br>
</div>
<div>- Jeff T</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, July 20, 2016 at 15:34:00<br>
<span style="font-weight:bold">To: </span>"Muktadir R Chowdhury (mrchwdhr)" <<a href="mailto:mrchwdhr@memphis.edu">mrchwdhr@memphis.edu</a>>, Lixia Zhang <<a href="mailto:lixia@cs.ucla.edu">lixia@cs.ucla.edu</a>>, Jeff Thompson <<a href="mailto:jefft0@remap.ucla.edu">jefft0@remap.ucla.edu</a>><br>
<span style="font-weight:bold">Cc: </span>nfd-dev <<a href="mailto:nfd-dev@lists.cs.ucla.edu">nfd-dev@lists.cs.ucla.edu</a>><br>
<span style="font-weight:bold">Subject: </span>RE: [Nfd-dev] [Ndn-interest] (NDN-js) query localhost from browser?<br>
</div>
<div><br>
</div>
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Muktadir</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This example works for me. I have Linux Mint 17 (based on Ubuntu 14.04) and NFD 0.4.1-1-g704430c.</p>
<p class="MsoNormal"><img width="857" height="241" style="width:8.927in;height:2.5104in" id="Picture_x0020_5" src="cid:image003.png@01D1E29C.3C06CFF0"></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In the source code of this webpage, I notice it’s connecting to ws://localhost:9696/ .</p>
<p class="MsoNormal">It’s better to change this to ws://127.0.0.1:9696/ in case the DNS resolver is not resolving ‘localhost’ to a loopback address. A WebSocket face is considered local only if it uses a loopback address.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Yours, Junxiao</p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:mrchwdhr@memphis.edu">Muktadir R Chowdhury (mrchwdhr)</a><br>
<b>Sent: </b>Wednesday, July 20, 2016 14:47<br>
<b>To: </b><a href="mailto:lixia@CS.UCLA.EDU">Lixia Zhang</a>; <a href="mailto:jefft0@remap.UCLA.edu">
Jeff Thompson</a><br>
<b>Cc: </b><a href="mailto:nfd-dev@lists.cs.ucla.edu">nfd-dev@lists.cs.ucla.edu</a><br>
<b>Subject: </b>Re: [Nfd-dev] [Ndn-interest] (NDN-js) query localhost from browser?</p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">The example works on my Mac OSX, but did not work on Ubuntu 14.04 (VM). Ashlesh was also using Ubuntu 14.04 that's why he is also not getting any data back.<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">Muktadir <o:p></o:p></span></p>
<div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<div id="divtagdefaultwrapper">
<div>
<div>
<div>
<div>
<div id="divtagdefaultwrapper">
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
</blockquote>
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal" style="background:white"><b>From:</b><span class="apple-converted-space"> </span>Ndn-interest <<a href="mailto:ndn-interest-bounces@lists.cs.ucla.edu">ndn-interest-bounces@lists.cs.ucla.edu</a>> on behalf of Thompson, Jeff <<a href="mailto:jefft0@remap.ucla.edu">jefft0@remap.ucla.edu</a>><br>
<b>Sent:</b><span class="apple-converted-space"> </span>Wednesday, July 20, 2016 3:25:27 PM<br>
<b>To:</b><span class="apple-converted-space"> </span>El Mimouni, Omar Ilias (IntlAssoc);<span class="apple-converted-space"> </span><a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a><br>
<b>Subject:</b><span class="apple-converted-space"> </span>Re: [Ndn-interest] (NDN-js) query localhost from browser?<span style="font-size:10.5pt"><o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt">See the example test-list-faces:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt"><a href="https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html">https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt">- Jeff T<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt"><o:p> </o:p></span></p>
</div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="background:white"><b>From:<span class="apple-converted-space"> </span></b>Ndn-interest <<a href="mailto:ndn-interest-bounces@lists.cs.ucla.edu">ndn-interest-bounces@lists.cs.ucla.edu</a>> on behalf of "El Mimouni, Omar Ilias (IntlAssoc)"
 <<a href="mailto:omarilias.elmimouni@nist.gov">omarilias.elmimouni@nist.gov</a>><br>
<b>Date:<span class="apple-converted-space"> </span></b>Wednesday, July 20, 2016 at 13:16:00<br>
<b>To:<span class="apple-converted-space"> </span></b>"<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>" <<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>><br>
<b>Subject:<span class="apple-converted-space"> </span></b>[Ndn-interest] (NDN-js) query localhost from browser?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt"><o:p> </o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt">Hi all,<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="background:white"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt">I am currently playing with NDN-js library, and I was wondering if it is possible to query the localhost (e.g.  <b>ndn:/localhost/nfd/faces/list</b>) .<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt">I could do that with node using UnixSocket. Is it possible to do it from a browser (knowing that the browser uses WebSockets) ?<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="background:white"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt">Thanks.<span class="apple-converted-space"> </span><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</span>
</body>
</html>