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

El Mimouni, Omar Ilias (IntlAssoc) omarilias.elmimouni at nist.gov
Thu Jul 21 09:25:48 PDT 2016


I did but no result!

I re-installed NFD and NDN-js.
I am using a WebSocket:

var ws = new WebSocket("ws://127.0.0.1:9696/")
var face = new Face(ws);


I am getting this in NFD log:

1469118300.665993 INFO: [Transport] [id=260,local=ws://[::ffff:127.0.0.1]:9696,remote=wsclient://[::ffff:127.0.0.1]:56441] setState UP -> CLOSING
1469118300.666025 INFO: [Transport] [id=260,local=ws://[::ffff:127.0.0.1]:9696,remote=wsclient://[::ffff:127.0.0.1]:56441] setState CLOSING -> CLOSED
1469118300.669641 INFO: [FaceTable] Removed face id=260 remote=wsclient://[::ffff:127.0.0.1]:56441 local=ws://[::ffff:127.0.0.1]:9696


But still no result!
From: Thompson, Jeff [mailto:jefft0 at remap.ucla.edu]
Sent: Thursday, July 21, 2016 12:17 PM
To: Junxiao Shi <shijunxiao at email.arizona.edu>; Muktadir R Chowdhury (mrchwdhr) <mrchwdhr at memphis.edu>; El Mimouni, Omar Ilias (IntlAssoc) <omarilias.elmimouni at nist.gov>
Cc: nfd-dev at lists.cs.ucla.edu
Subject: Re: [Nfd-dev] [Ndn-interest] (NDN-js) query localhost from browser?

... 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:image001.png at 01D1E34A.686A7F70]

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/536a54df/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 201401 bytes
Desc: image001.png
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160721/536a54df/attachment.png>


More information about the Nfd-dev mailing list