You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$10
For Premium members:
In this article we will see how to programmatically get the IP address in Windows Phone 8.
Let us see the procedure for programmatically getting the IP address in Windows Phone 8. Create a new project with a valid name. Once everything is ready our project will look as in the following screen. Now add one Button control to the triggers and show the IP address, change the button name to “Get lP”.XAML Code
Next we need to enable ID_CAP_NETWORKING. Open the WMAppManifest file and enable ID_CAP_NETWORKING as shown in the following screen.Note that it is possible for there to be multiple network interfaces on your Windows Phone. For example, the Windows Phone Emulator has 3 network interfaces. The following code snippet tries to retrieve the first one in the List.Now go to the code behind page.C# Code
Now run your application. The output looks as in following screen:
Windows Phone Development Step by Step Tutorial