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

El Mimouni, Omar Ilias (IntlAssoc) omarilias.elmimouni at nist.gov
Thu Jul 21 11:17:13 PDT 2016


Perfect! I used the [::1] it works fine on both Chrome and Firefox! Thanks

Cheers,
Omar

From: Zhehao Wang [mailto:wangzhehao410305 at gmail.com]
Sent: Thursday, July 21, 2016 2:09 PM
To: El Mimouni, Omar Ilias (IntlAssoc) <omarilias.elmimouni at nist.gov>
Subject: Re: [Nfd-dev] [Ndn-interest] (NDN-js) query localhost from browser?

Hi Omar,

Seems that Junxiao just confirmed this bug.
His workaround, using [::1] (making it the same as what nfd-status would see as a local face...) works well for me on both Chrome and Firefox. Try this and let us know?

Thanks,
Zhehao

On Thu, Jul 21, 2016 at 1:56 PM, 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.


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

_______________________________________________
Nfd-dev mailing list
Nfd-dev at lists.cs.ucla.edu<mailto:Nfd-dev at lists.cs.ucla.edu>
http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev

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


More information about the Nfd-dev mailing list