3

I am finding difficulty in using System.Net.IPAddress or any similar types in Windows 8 Metro Apps. I am creating an application that will run in an intranet environment and the users will connect to remote servers using IPAddress.

But somehow I am not able to use it. Also, in Windows.Networking.EndpointPair class, I cant find any option to pass IPAddress specifically

Kindly help with this. Thanx of help in advance

4

1 回答 1

5

You can use the HostName class to represent an IP Address. When you create the EndpointPair, you have a remote and a local host. Check out the StreamSocket sample. System.Net.IPAddress is not part of the .NET Core Profile and is thus not available from Metro style apps.

于 2012-06-17T07:51:57.963 回答