Getting the Name of your Windows Phone 8 device can name your phone to whatever you like, but how can an app display that name? There isn't an obvious API for this, but I accidentally discovered an un-obvious API. The quick version is that you can ask getaddrinfo for the canonical network nameen-USTelligent Evolution Platform Developer Build (Build: 5.6.50428.7875)re: Getting the Name of your Windows Phone 8 device, 22 Sep 2014 13:27:32 GMT91d46819-8472-40ad-a661-2c78acb4018c:10559658Antoine Cœur<p>Why not simply:</p> <p> &nbsp; &nbsp;using Windows.Networking.Proximity;</p> <p> &nbsp; &nbsp;var name = PeerFinder.DisplayName;</p> <p>Also, how to do it for Windows Phone 7? I get this error:</p> <p>&quot;Unable to add the specified project reference. The reference must be a Windows Phone project that targets the current or earlier version of the Windows Phone OS.&quot;</p> <p>See this thread: <a rel="nofollow" target="_new" href=""></a></p> <div style="clear:both;"></div><img src="" width="1" height="1">