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

Thompson, Jeff jefft0 at remap.UCLA.edu
Thu Jul 21 09:17:11 PDT 2016


… from this screen shot, it does look like Junxiao using Chrome.

Omar, can you try Chrome?

- Jeff T

From: Junxiao Shi <shijunxiao at email.arizona.edu<mailto:shijunxiao at email.arizona.edu>>
Date: Wednesday, July 20, 2016 at 15:34:00
To: "Muktadir R Chowdhury (mrchwdhr)" <mrchwdhr at memphis.edu<mailto:mrchwdhr at memphis.edu>>, Lixia Zhang <lixia at cs.ucla.edu<mailto:lixia at cs.ucla.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?

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/ 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

From: Muktadir R Chowdhury (mrchwdhr)<mailto:mrchwdhr at memphis.edu>
Sent: Wednesday, July 20, 2016 14:47
To: 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?


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.



Muktadir

From: Ndn-interest <ndn-interest-bounces at lists.cs.ucla.edu<mailto:ndn-interest-bounces at lists.cs.ucla.edu>> on behalf of Thompson, Jeff <jefft0 at remap.ucla.edu<mailto:jefft0 at remap.ucla.edu>>
Sent: Wednesday, July 20, 2016 3:25:27 PM
To: El Mimouni, Omar Ilias (IntlAssoc); ndn-interest at lists.cs.ucla.edu<mailto:ndn-interest at lists.cs.ucla.edu>
Subject: Re: [Ndn-interest] (NDN-js) query localhost from browser?

See the example test-list-faces:
https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html

- Jeff T

From: Ndn-interest <ndn-interest-bounces at lists.cs.ucla.edu<mailto:ndn-interest-bounces at lists.cs.ucla.edu>> on behalf of "El Mimouni, Omar Ilias (IntlAssoc)" <omarilias.elmimouni at nist.gov<mailto:omarilias.elmimouni at nist.gov>>
Date: Wednesday, July 20, 2016 at 13:16:00
To: "ndn-interest at lists.cs.ucla.edu<mailto:ndn-interest at lists.cs.ucla.edu>" <ndn-interest at lists.cs.ucla.edu<mailto:ndn-interest at lists.cs.ucla.edu>>
Subject: [Ndn-interest] (NDN-js) query localhost from browser?

Hi all,

I am currently playing with NDN-js library, and I was wondering if it is possible to query the localhost (e.g.  ndn:/localhost/nfd/faces/list) .
I could do that with node using UnixSocket. Is it possible to do it from a browser (knowing that the browser uses WebSockets) ?

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160721/d75d421a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9B10DCF0EAB9426190CF538F34DBA970.png
Type: image/png
Size: 201401 bytes
Desc: 9B10DCF0EAB9426190CF538F34DBA970.png
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160721/d75d421a/attachment.png>


More information about the Nfd-dev mailing list