473,387 Members | 1,766 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,387 software developers and data experts.

Client IP Address or PC Name

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
Nov 22 '05 #1
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

Nov 22 '05 #2
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
Nov 22 '05 #3
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
Nov 22 '05 #4
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

Nov 22 '05 #5
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
Nov 22 '05 #6
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

Nov 22 '05 #7
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

Nov 22 '05 #8

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

Similar topics

88
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.
3
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...
3
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...
5
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...
2
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...
0
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...
0
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...
2
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...
0
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...
3
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...
0
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$) { } ...
0
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.