Click here to Skip to main content
15,896,207 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please HELP!!!!!!! Pin
Colin Angus Mackay8-Jun-06 4:46
Colin Angus Mackay8-Jun-06 4:46 
GeneralRe: Please HELP!!!!!!! Pin
Ret Orrick8-Jun-06 7:42
Ret Orrick8-Jun-06 7:42 
GeneralRe: Please HELP!!!!!!! Pin
Colin Angus Mackay8-Jun-06 8:25
Colin Angus Mackay8-Jun-06 8:25 
GeneralRe: Please HELP!!!!!!! Pin
Ret Orrick8-Jun-06 8:40
Ret Orrick8-Jun-06 8:40 
GeneralRe: Please HELP!!!!!!! Pin
DampaZGB8-Jun-06 22:03
DampaZGB8-Jun-06 22:03 
Questionhow to send recived sms using smpp Pin
foysal mamun7-Jun-06 20:57
foysal mamun7-Jun-06 20:57 
QuestionCreating webpage using C# Pin
Vijju7-Jun-06 20:57
Vijju7-Jun-06 20:57 
AnswerRe: Creating webpage using C# [modified] Pin
rfjeld7-Jun-06 21:48
rfjeld7-Jun-06 21:48 
This might give you an idea on how to get the ip:

using System;
using System.Net;

namespace GetIPCS
{

/// Gets IP addresses of the local machine
class classGetIPCS
{
[STAThread]
static void Main(string[] args)
{
// Get host name
String strHostName = Dns.GetHostName();
Console.WriteLine("Host Name: " + strHostName);

// Find host by name
IPHostEntry iphostentry = Dns.GetHostByName(strHostName);

// Enumerate IP addresses
int nIP = 0;
foreach (IPAddress ipaddress in iphostentry.AddressList)
{
Console.WriteLine("IP #" + ++nIP + ": " +
ipaddress.ToString());
}
}
}
}

-- modified at 4:02 Thursday 8th June, 2006

Edit: Just noticed that this was going to run in a web page.
The code used in ASP.NET run's on the server and is sent to the client ... the only way to get client info in .NET is to either run js on the client or use the HttpBrowserCapabilities class from the System.Web namespace wich dont have country or ip...
QuestionSharing Internet connection Pin
arjun priyananth7-Jun-06 20:42
arjun priyananth7-Jun-06 20:42 
AnswerRe: Sharing Internet connection Pin
Daniele Ferrero7-Jun-06 20:49
Daniele Ferrero7-Jun-06 20:49 
GeneralRe: Sharing Internet connection Pin
arjun priyananth7-Jun-06 20:51
arjun priyananth7-Jun-06 20:51 
GeneralRe: Sharing Internet connection Pin
Daniele Ferrero7-Jun-06 21:00
Daniele Ferrero7-Jun-06 21:00 
QuestionRun on top of game in full screen Pin
rfjeld7-Jun-06 20:40
rfjeld7-Jun-06 20:40 
AnswerRe: Run on top of game in full screen Pin
Daniele Ferrero7-Jun-06 21:43
Daniele Ferrero7-Jun-06 21:43 
GeneralRe: Run on top of game in full screen Pin
rfjeld7-Jun-06 21:53
rfjeld7-Jun-06 21:53 
AnswerRe: Run on top of game in full screen Pin
J4amieC7-Jun-06 21:57
J4amieC7-Jun-06 21:57 
GeneralRe: Run on top of game in full screen Pin
rfjeld7-Jun-06 22:13
rfjeld7-Jun-06 22:13 
QuestionAdding a checkbox to ListView Control in C# Pin
peshawarcoder7-Jun-06 20:19
peshawarcoder7-Jun-06 20:19 
AnswerRe: Adding a checkbox to ListView Control in C# [modified] Pin
rfjeld7-Jun-06 21:13
rfjeld7-Jun-06 21:13 
QuestionPrinting Html Table Pin
Suamal7-Jun-06 20:15
Suamal7-Jun-06 20:15 
AnswerRe: Printing Html Table Pin
Suamal9-Jun-06 0:42
Suamal9-Jun-06 0:42 
QuestionComparision between 2 xml files Pin
donymony7-Jun-06 19:55
donymony7-Jun-06 19:55 
AnswerRe: Comparision between 2 xml files Pin
rah_sin7-Jun-06 20:01
professionalrah_sin7-Jun-06 20:01 
AnswerRe: Comparision between 2 xml files Pin
Daniele Ferrero7-Jun-06 20:56
Daniele Ferrero7-Jun-06 20:56 
GeneralRe: Comparision between 2 xml files Pin
donymony7-Jun-06 20:58
donymony7-Jun-06 20:58 

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.