Click here to Skip to main content
15,895,011 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Connect to report sever via code Pin
Yusuf31-Mar-09 4:57
Yusuf31-Mar-09 4:57 
QuestionNeed Help Pin
Anand Ranjan Pandey31-Mar-09 3:11
professionalAnand Ranjan Pandey31-Mar-09 3:11 
AnswerRe: Need Help Pin
Colin Angus Mackay31-Mar-09 3:19
Colin Angus Mackay31-Mar-09 3:19 
QuestionRadio Streaming Pin
aneeshmabdul31-Mar-09 3:09
aneeshmabdul31-Mar-09 3:09 
Questioncopy omage from one table to another sql server Pin
rajshadesmunde31-Mar-09 2:25
rajshadesmunde31-Mar-09 2:25 
AnswerRe: copy omage from one table to another sql server Pin
Alok Sharma ji31-Mar-09 3:01
Alok Sharma ji31-Mar-09 3:01 
AnswerRe: copy omage from one table to another sql server Pin
Alok Sharma ji31-Mar-09 3:02
Alok Sharma ji31-Mar-09 3:02 
QuestionGet Visitor's IP address Pin
.NET- India 31-Mar-09 2:23
.NET- India 31-Mar-09 2:23 
Hello Friend,

I want to get the Visitor's IP Address. For it, i'm using the following code

string hostName = Dns.GetHostName();

IPHostEntry hostEntry = Dns.GetHostEntry(hostName);
IPAddress[] ipAddress = hostEntry.AddressList;

string name = null;
for(int i=0;i<ipAddress.Length;i++)
{
name = name + ipAddress[i].ToString()+"<br>";
}

Response.Write(name.ToString());


This code is showing the correct IPAddress of the local computer on localhost but as i upload this code over my server it gives me the following IPAddress not of my computer


66.63.181.68
66.63.181.93
216.45.55.186


Secondly, i use the following code

string hostName1 = Request.UserHostName.ToString();
Response.Write(hostName1.ToString());


But this is giving the IPAddress of the Main computer, I mean there are four computers, sharing the internet connection from my PC and when i visit the page from any of those computers it always give me the IP of my PC
AnswerRe: Get Visitor's IP address Pin
Colin Angus Mackay31-Mar-09 2:55
Colin Angus Mackay31-Mar-09 2:55 
GeneralRe: Get Visitor's IP address Pin
Alok Sharma ji31-Mar-09 3:03
Alok Sharma ji31-Mar-09 3:03 
GeneralRe: Get Visitor's IP address Pin
Colin Angus Mackay31-Mar-09 3:11
Colin Angus Mackay31-Mar-09 3:11 
GeneralRe: Get Visitor's IP address Pin
.NET- India 31-Mar-09 3:15
.NET- India 31-Mar-09 3:15 
GeneralRe: Get Visitor's IP address Pin
.NET- India 31-Mar-09 3:10
.NET- India 31-Mar-09 3:10 
GeneralRe: Get Visitor's IP address Pin
Colin Angus Mackay31-Mar-09 3:16
Colin Angus Mackay31-Mar-09 3:16 
GeneralRe: Get Visitor's IP address Pin
Alok Sharma ji31-Mar-09 14:32
Alok Sharma ji31-Mar-09 14:32 
GeneralRe: Get Visitor's IP address Pin
Colin Angus Mackay31-Mar-09 20:49
Colin Angus Mackay31-Mar-09 20:49 
QuestionHow to call a buttonclick event from another buttonclick event in asp.net? Pin
Subin Alex31-Mar-09 2:04
Subin Alex31-Mar-09 2:04 
AnswerRe: How to call a buttonclick event from another buttonclick event in asp.net? Pin
Ravi Mori31-Mar-09 2:12
Ravi Mori31-Mar-09 2:12 
AnswerRe: How to call a buttonclick event from another buttonclick event in asp.net? Pin
anilpal31-Mar-09 2:16
anilpal31-Mar-09 2:16 
Questionrestrict the user from selecting multiple checkboxes.... Pin
RajpootRohan31-Mar-09 1:33
professionalRajpootRohan31-Mar-09 1:33 
AnswerRe: restrict the user from selecting multiple checkboxes.... Pin
vinodkrebc31-Mar-09 1:42
vinodkrebc31-Mar-09 1:42 
AnswerRe: restrict the user from selecting multiple checkboxes.... Pin
anilpal31-Mar-09 1:51
anilpal31-Mar-09 1:51 
GeneralRe: restrict the user from selecting multiple checkboxes.... Pin
RajpootRohan31-Mar-09 1:58
professionalRajpootRohan31-Mar-09 1:58 
GeneralRe: restrict the user from selecting multiple checkboxes.... Pin
anilpal31-Mar-09 2:15
anilpal31-Mar-09 2:15 
GeneralRe: restrict the user from selecting multiple checkboxes.... Pin
RajpootRohan31-Mar-09 2:27
professionalRajpootRohan31-Mar-09 2:27 

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.