473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Can we find out IP address?

Hi, guys,

Do we have a .net function to find out what is the IP address of IIS server?

Thanks.
Mar 17 '06 #1
4 2498
See if this helps..

http://www.netomatix.com/machineip.aspx
--
Netomatix
http://www.netomatix.com
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
Hi, guys,

Do we have a .net function to find out what is the IP address of IIS
server?

Thanks.

Mar 17 '06 #2
thanks...

"Winista" wrote:
See if this helps..

http://www.netomatix.com/machineip.aspx
--
Netomatix
http://www.netomatix.com
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
Hi, guys,

Do we have a .net function to find out what is the IP address of IIS
server?

Thanks.


Mar 17 '06 #3
That sounds unnecessarily complicated.

Just use :

Request.UserHostAddress.ToString()
or
Request.ServerVariables("REMOTE_ADDR")

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Winista" <na*********@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
See if this helps..

http://www.netomatix.com/machineip.aspx
--
Netomatix
http://www.netomatix.com
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
Hi, guys,

Do we have a .net function to find out what is the IP address of IIS server?

Thanks.



Mar 17 '06 #4
If you look for the application host, you can use

Request.Url.Host

If you look for requester's IP, use

Request.UserHostAddress (if the request comes through a proxy server, you
might need Request.ServerVariables["HTTP_X_FORWARDED_FOR"])

HTH

Elton Wang

"Andrew" wrote:
Hi, guys,

Do we have a .net function to find out what is the IP address of IIS server?

Thanks.

Mar 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Arne | last post by:
Hi, Probably an easy answer to this, but I have not been able to figure it out. How can I find the IP-address of the machine that my Java-program is running on ? Could not find any methods in...
1
by: Galsaba | last post by:
Anyone knows how I can find a script for "Find a Dealer near you" locator script? I prefer to have it in two stages: 1. The customer will enter his address, and then the result will be a list of...
8
by: pigeon | last post by:
I have 2 users that their client software must be going crazy.. they are sending packets every .02 seconds to the db server... I know this because I stuck a sniffer on teh traffic.. but now i just...
2
by: Phil | last post by:
Hi. I have a table containing primary address, secondary address, road,town, postcode, there are otherfields within the table requestid, round, day, etc. I want to find all instances of the...
4
by: Arun | last post by:
Like its possible to find IP address of a visitor in same way is it possible to find the visitor's PC's MAC address? -Regards,
12
by: Souljaz | last post by:
Hi, how to find IP address. Thanks
3
by: subirs | last post by:
Hi, I am using mtrace to check for memory leaks in my code. The code is divided into many fucntion which are placed in different directories. While using mtrace the following output is given....
11
by: bijayadipti | last post by:
Hi, I have a C program. I have compiled it uisng gcc and also avr-gcc. Now after compiling, I want to know the addresses of the two variables in my program. Is there any options that I can use...
10
by: Christian Chrismann | last post by:
Hi, I've a question on the STL find algorithm: My code: int main( void ) { vector< ClassA* myVector; ClassA *ptrElement1 = ...;
10
by: OppThumb | last post by:
Hi, I've been searching this newsgroup for an answer to my question, and the closest I've come asks my question, but in reverse ("How to figure out the program from plan/package"). I've -- shall...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.