Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert DWORD value Pin
Ennis Ray Lynch, Jr.19-Mar-07 11:22
Ennis Ray Lynch, Jr.19-Mar-07 11:22 
GeneralRe: Convert DWORD value Pin
Wayne Phipps20-Mar-07 10:50
Wayne Phipps20-Mar-07 10:50 
GeneralBoolean Algebra Pin
Ennis Ray Lynch, Jr.20-Mar-07 13:21
Ennis Ray Lynch, Jr.20-Mar-07 13:21 
GeneralRe: Boolean Algebra Pin
Wayne Phipps21-Mar-07 2:42
Wayne Phipps21-Mar-07 2:42 
QuestionHow to Clone a Gridview Pin
peter.bellen@qsm-europe.com19-Mar-07 10:25
peter.bellen@qsm-europe.com19-Mar-07 10:25 
AnswerRe: How to Clone a Gridview Pin
Ed.Poore19-Mar-07 12:38
Ed.Poore19-Mar-07 12:38 
QuestionCrystal report XI and C# 2005 Pin
Newbie_Toy19-Mar-07 9:45
Newbie_Toy19-Mar-07 9:45 
QuestionHow to get External IP address of a user sitting behind a routher? [modified] Pin
Khoramdin19-Mar-07 9:43
Khoramdin19-Mar-07 9:43 
Hello everyone,

I am working on an Windows Application writen in C# which gets connected to a remote Database server. I am trying to get the IP address of the use once they get connected to the database.

I am using the following code for getting the IP address:

string strHostAddress = "";
IPAddress[] addresslist = Dns.GetHostAddresses(strHostAddress);
foreach (IPAddress theAddress in addresslist)
{
MessageBox.Show(theAddress.ToString());
}

It works fine but the code returns the enternal IP address since my computer is sitting behind a routher.

I was wondering if it is possible to get the external IP address?

Thank you very much and have a great day.

Khoramdin




-- modified at 18:32 Monday 19th March, 2007
AnswerRe: How to get the user's IP Address? Pin
Ed.Poore19-Mar-07 12:40
Ed.Poore19-Mar-07 12:40 
GeneralRe: How to get the user's IP Address? Pin
Khoramdin19-Mar-07 15:58
Khoramdin19-Mar-07 15:58 
QuestionRecommended Filename/Path lengths Pin
SSMERK00719-Mar-07 9:27
SSMERK00719-Mar-07 9:27 
AnswerRe: Recommended Filename/Path lengths Pin
Jimmanuel19-Mar-07 9:55
Jimmanuel19-Mar-07 9:55 
GeneralRe: Recommended Filename/Path lengths Pin
SSMERK00719-Mar-07 10:07
SSMERK00719-Mar-07 10:07 
QuestionA form inside another Pin
sinosoidal19-Mar-07 8:04
sinosoidal19-Mar-07 8:04 
AnswerRe: A form inside another Pin
Hesham Amin19-Mar-07 8:27
Hesham Amin19-Mar-07 8:27 
AnswerRe: A form inside another Pin
Dave Kreskowiak19-Mar-07 13:19
mveDave Kreskowiak19-Mar-07 13:19 
AnswerRe: A form inside another Pin
joon vh.19-Mar-07 13:20
joon vh.19-Mar-07 13:20 
GeneralRe: A form inside another Pin
sinosoidal20-Mar-07 4:23
sinosoidal20-Mar-07 4:23 
GeneralRe: A form inside another Pin
joon vh.20-Mar-07 4:32
joon vh.20-Mar-07 4:32 
AnswerRe: A form inside another Pin
sinosoidal20-Mar-07 4:17
sinosoidal20-Mar-07 4:17 
Questionhow to communicate between forms and classes Pin
Waldihuber19-Mar-07 8:03
Waldihuber19-Mar-07 8:03 
AnswerRe: how to communicate between forms and classes Pin
Hesham Amin19-Mar-07 8:31
Hesham Amin19-Mar-07 8:31 
GeneralRe: how to communicate between forms and classes Pin
Waldihuber19-Mar-07 11:07
Waldihuber19-Mar-07 11:07 
GeneralRe: how to communicate between forms and classes Pin
Dave Kreskowiak19-Mar-07 13:13
mveDave Kreskowiak19-Mar-07 13:13 
Questionstring parsing Pin
jesarg19-Mar-07 7:57
jesarg19-Mar-07 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.