1

I'm experimenting with PNRP, just using netsh to execute basic commands to register peers on my machine. I am able to add multiple peers on my machine by opening multiple instances of a command prompt, and entering the following commands

netsh
p2p pnrp peer
add registration 0.mike

After that I switch to the cloud context and enter show names and I see a bunch of info, and the names of my 2 peers that I registered through cmd. However, when I ask another developer (who has a machine on my same IPv4 subnet) to run the same commands they do not appear. I would expect a third peer to show up on my cloud, since we're using the same name 0.mike

What do I not understand about what is going on here, and what should I be doing to get the behavior I'd expect?

4

1 回答 1

1

Show Names is designed to only show you the names that are registered on your local machines, not the names that your computer is aware of.

Due to the way that name storage works (a one way hash algorithm) the nodes of a network aren't actually aware of the names that they are storing, just the hashed values.

The command that you want to run is resolve 0.mike to actually perform a lookup for the name and return the IP addresses. You can restrict this by cloud as well if you need to.

于 2014-02-01T04:45:01.783 回答