473,471 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to ge the IP address of my web server

I need to get the IP address when my web server listen to in ASP.NET
application.
C# is teh language. My Server has a multiple installation of my
application and I need to show the IP in one message box.

Any ideas?

thx

Sep 13 '06 #1
2 1540
Look at the server.variables collection, specifically the LOCAL_ADDR value

http://www.quepublishing.com/article...&seqNum=4&rl=1

Regards

John Timney (MVP)
http://www.johntimney.com

<ni*******@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
>I need to get the IP address when my web server listen to in ASP.NET
application.
C# is teh language. My Server has a multiple installation of my
application and I need to show the IP in one message box.

Any ideas?

thx

Sep 13 '06 #2
Thank you

John Timney (MVP) wrote:
Look at the server.variables collection, specifically the LOCAL_ADDR value

http://www.quepublishing.com/article...&seqNum=4&rl=1

Regards

John Timney (MVP)
http://www.johntimney.com

<ni*******@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
I need to get the IP address when my web server listen to in ASP.NET
application.
C# is teh language. My Server has a multiple installation of my
application and I need to show the IP in one message box.

Any ideas?

thx
Sep 13 '06 #3

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

Similar topics

5
by: VooDoo | last post by:
Hi, Is it possible to have the MAC adress of the client that connect to a php page? I have the IP adress, if it's not possible to have directly is it possible to query the DCHP server and have...
2
by: jason | last post by:
Hello and Good day. There's a site I want to link to passing info I collect without having to re-enter the data on that's sites input form. I know this is not always possible, but in this case...
4
by: Bob H | last post by:
Hi, I'm aware of the different ways to pass variables between ASP.Net pages. For pages that need to pass a variable, we're using the server.transfer method. For others, we're using...
0
by: Avi | last post by:
A CreateUserWizard contorl receives new user details, adds the user to the database, tries to send a confirmation mail message and stops with a "System.FormatException: The specified string is not...
2
by: Kim Floyd | last post by:
We have an application that uses .Net remoting to allow remote servers to connect to a master server to synchronize data. The format of the url we use to the master server looks like...
6
by: minnesøtti | last post by:
Hi there, I am posting to a web-based forum which runs on ASP and uses JavaScript. I post via a proxy-server which rewrites JavaScript, does not send cookies back to the forum server, and which...
1
by: danknauf | last post by:
I have a webserver which is behaving strangely. The server is a fresh copy of Windows 2003 running IIS with default options + Active Server Pages installed. The server is connected to a Linksys...
1
by: andrew.smith.cpp | last post by:
Hello All :-), i last Posted a request about the spam at google and someone told me about PAN i install it on my PC but when i start it and the msg shows there is no server selected .and then i...
14
by: John Kotuby | last post by:
Hi all, I have a situation where a Web Server at an install site does not currently have a publically registered Domain Name associated with the site. This requires that the a user access the...
10
by: Mike Miller | last post by:
Hi, Am wanting to send email with php and need to access the global outlook address book. Are there any examples/tutorials on how to do this? M
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.