Hi,
Try this
using System.Net;
System.Net.IPAddress addr;
addr = new System.Net.IPAddress(Dns.GetHostByName
(Dns.GetHostName()).AddressList[0].Address);
addr.ToString() is an IP address.
Hope this will help U
Regards
-----Original Message-----
Whoops... sorry, I guess no question is ever as simple as
it seems. My application is a Windows Forms application,
not a web app.
My question should more properly have been:
How can my Windows Forms app get a string containing my
IP address (e.g., "129.200.123.456")
TIA!
Hi,
U can retreive IP address from server variables.
Request.Servervariable("REMOTE_ADDR")
SHrawan
-----Original Message-----
Hi all,
Here's a (hopefully) simple question: How do I get a
string containing my IP address
(e.g., "129.200.123.456")? TIA!
.