IP Address Format

M

Mark

Hi,

I was just wondering if a mobile device should have a standard IP address.
I'm using an XDA2 running Pocket PC 2003 Phone Edition, when I use the
fl=ollowing code fragement I get a number something like 119988447, rather
that aaa.bbb.ccc.ddd:

IPHostEntry IpHost = Resolve(Dns.GetHostName());
IpHost.AddrssList[0].Address.ToString();

Is this normal?

Mark
 
J

Jon Skeet [C# MVP]

Mark said:
I was just wondering if a mobile device should have a standard IP address.
I'm using an XDA2 running Pocket PC 2003 Phone Edition, when I use the
fl=ollowing code fragement I get a number something like 119988447, rather
that aaa.bbb.ccc.ddd:

IPHostEntry IpHost = Resolve(Dns.GetHostName());
IpHost.AddrssList[0].Address.ToString();

Is this normal?

Absolutely - IpAddress.Address is a long, not a string.

If you take out the ".Address" part, however, you should get a dotted
address.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top