How can I obtain the client IP address or machine name from within an asp.net
application? I want to use this information to determine where to redirect a
web page.
Many thanks
Homer 7 2352
I am using response.redirect with a target address depending on the subnet
that the clients machine is located in. Apologies for adding confusion, as
this part is pretty much irrelevant to my question.
The important question is it possible to get the ip address of the clients
machine and if so how?
Many thanks
Homer
"Cor Ligthert" wrote: Homer,
How can I obtain the client IP address or machine name from within an asp.net application? I want to use this information to determine where to redirect a web page. I do not understand what you mean with redirect a webpage, why do you need for that a client IP adres?
Cor
Homer, How can I obtain the client IP address or machine name from within an asp.net application? I want to use this information to determine where to redirect a web page.
I do not understand what you mean with redirect a webpage, why do you need
for that a client IP adres?
Cor
I am using response.redirect with a target address depending on the subnet
that the clients machine is located in. Apologies for adding confusion, as
this part is pretty much irrelevant to my question.
The important question is it possible to get the ip address of the clients
machine and if so how?
Many thanks
Homer
"Cor Ligthert" wrote: Homer,
How can I obtain the client IP address or machine name from within an asp.net application? I want to use this information to determine where to redirect a web page. I do not understand what you mean with redirect a webpage, why do you need for that a client IP adres?
Cor
Thanks very much Cor. This was exactly what I needed.
Homer
"Cor Ligthert" wrote: Homer,
I assume, that this is the page you are looking for, the actual IP adress of a computer can be very rare to find because of proxies, local networks, firewalls, etc.
http://msdn.microsoft.com/library/de...rvariables.asp
I hope this helps?
Cor
Thanks very much Cor. This was exactly what I needed.
Homer
"Cor Ligthert" wrote: Homer,
I assume, that this is the page you are looking for, the actual IP adress of a computer can be very rare to find because of proxies, local networks, firewalls, etc.
http://msdn.microsoft.com/library/de...rvariables.asp
I hope this helps?
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mike |
last post by:
Is there a way to determine what a user's default email client is? I
read a post from 3 years ago that said no. I guess I'm hoping
something has come along since then.
|
by: Roy Souther |
last post by:
Trying to get the unixODBC to work connecting to an IBM DB2 UDB V8.1. The
DB2 server is running on Red Hat 8 and is tested and confirmed to be
serving connections to Windows 98 clients using the...
|
by: NWx |
last post by:
Hi,
I have a ASP.NET application using forms authentication
Default page is default.aspx, and login page is login.aspx
As I perform authentication in Login page, I want to update a log table...
|
by: JezB |
last post by:
Any way I can get at a unique "Client ID" within server code ? I'm writing
some auditing and I want to record which particular client machine initiated
a request, for example.
I imagine in an...
|
by: WhatHappend |
last post by:
I have converted a .Net 1.0 application to .Net 2.0 and the web service
invocations have delay of around 10seconds on each intial access. After the
first access subsequent access are fast (After a...
|
by: just.an.imbecile |
last post by:
Hello all,
Here is a quick version of my problem. I have a website that
consists of 4 ASPX pages. Every field is required by default, but on
pages 1 and 2, there are several fields that can be...
|
by: =?Utf-8?B?UmljaGFyZCBDb2xsZXR0ZQ==?= |
last post by:
My goal is to connect a WSE 3.0 client to a WCF asp.net hosted service,
utilizing MTOM encoding and if at all possible, streamedRequest transfer mode.
I am starting with a basic Hello World...
|
by: nsaffary |
last post by:
hi
I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
|
by: =?Utf-8?B?PT10aW1lPT0=?= |
last post by:
I am trying to build a proof of concept of a WCF service utilisting a
wsHttpBinding with Transport Certificate security. I am having problems
connecting to it with a console client - everytime I...
|
by: dynamo08 |
last post by:
Hi,
I am new to socket programming, I wrote an ftpclient which connects to an ftp server and downloads a file to the client computer.
Now in one client connection I want to download multiple files...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
| |