<html 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"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><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></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Dear folks</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The example was working for me yesterday, but isn’t working today. This turns out to be <a href="https://redmine.named-data.net/issues/3682">NFD Bug 3682</a>.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The workaround is to specify <span style='font-family:"Courier New"'>new Face({host:'[::1]'})</span><o:p></o:p></p><p class=MsoNormal>OR in nfd.conf, set <span style='font-family:"Courier New"'>face_system.websocket.enable_v6=no</span>.</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:shijunxiao@email.arizona.edu">Junxiao Shi</a><br><b>Sent: </b>Wednesday, July 20, 2016 15:34<br><b>To: </b><a href="mailto:mrchwdhr@memphis.edu">Muktadir R Chowdhury (mrchwdhr)</a>; <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 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 border=0 width=857 height=241 style='width:8.927in;height:2.5104in' id="Picture_x0020_5" src="cid:image003.png@01D1E29C.3C06CFF0" alt="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></div></body></html>