[Nfd-dev] [Ndn-interest] (NDN-js) query localhost from browser?

Thompson, Jeff jefft0 at remap.ucla.edu
Mon Jul 25 08:36:59 PDT 2016


Works for me on my Ubuntu 14.04 virtual machine.

Thanks!
- Jeff T

From: Junxiao Shi <shijunxiao at email.arizona.edu<mailto:shijunxiao at email.arizona.edu>>
Date: Saturday, July 23, 2016 at 13:14:00
To: "Muktadir R Chowdhury (mrchwdhr)" <mrchwdhr at memphis.edu<mailto:mrchwdhr at memphis.edu>>, Jeff Thompson <jefft0 at remap.ucla.edu<mailto:jefft0 at remap.ucla.edu>>
Cc: nfd-dev <nfd-dev at lists.cs.ucla.edu<mailto:nfd-dev at lists.cs.ucla.edu>>
Subject: Re: [Nfd-dev] [Ndn-interest] (NDN-js) query localhost from browser?

Dear folks

A patch for this issue has been merged into NFD master branch
Workarounds are no longer necessary once you upgrade NFD to commit 4a4ccfe7d65a5cadf91a70533e3d458ab91fa27c or higher.

Yours, Junxiao

On Thu, Jul 21, 2016 at 10:56 AM, Junxiao Shi <shijunxiao at email.arizona.edu<mailto:shijunxiao at email.arizona.edu>> wrote:

Dear folks



The example was working for me yesterday, but isn’t working today. This turns out to be NFD Bug 3682<https://redmine.named-data.net/issues/3682>.



The workaround is to specify new Face({host:'[::1]'})

OR in nfd.conf, set face_system.websocket.enable_v6=no.



Yours, Junxiao



From: Junxiao Shi<mailto:shijunxiao at email.arizona.edu>
Sent: Wednesday, July 20, 2016 15:34
To: Muktadir R Chowdhury (mrchwdhr)<mailto:mrchwdhr at memphis.edu>; Lixia Zhang<mailto:lixia at CS.UCLA.EDU>; Jeff Thompson<mailto:jefft0 at remap.UCLA.edu>
Cc: nfd-dev at lists.cs.ucla.edu<mailto:nfd-dev at lists.cs.ucla.edu>
Subject: RE: [Nfd-dev] [Ndn-interest] (NDN-js) query localhost from browser?



Hi Muktadir



This example works for me. I have Linux Mint 17 (based on Ubuntu 14.04) and NFD 0.4.1-1-g704430c.

[cid:image003.png at 01D1E29C.3C06CFF0]



In the source code of this webpage, I notice it’s connecting to ws://localhost:9696/ .

It’s better to change this to ws://127.0.0.1:9696/<http://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.



Yours, Junxiao

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160725/f4b67211/attachment.html>


More information about the Nfd-dev mailing list