Hello Everybody,
I try to use script to get client IP
<%
dim IPAddr
IPAddr = Request.ServerV ariables("remot e_addr")
Response.Write( "Your IP Address is " & IPAddr)
%>
but script return IP of Web site, not CLIENT and not null value!
My site is hosted on W2003 server SP1, IIS, ISA
I'm only using ASP no ASP.NET
Regards,
David 11 4961
David Velazco wrote: Hello Everybody,
I try to use script to get client IP
<% dim IPAddr IPAddr = Request.ServerV ariables("remot e_addr") Response.Write( "Your IP Address is " & IPAddr) %>
but script return IP of Web site, not CLIENT and not null value!
My site is hosted on W2003 server SP1, IIS, ISA
Have the user enter it into a form field. ;-)
There is no guaranteed way to do it.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
David Velazco wrote on 26 mei 2006 in
microsoft.publi c.inetserver.as p.general: Hello Everybody,
I try to use script to get client IP
<% dim IPAddr IPAddr = Request.ServerV ariables("remot e_addr") Response.Write( "Your IP Address is " & IPAddr) %>
but script return IP of Web site, not CLIENT and not null value!
This is not true.
The IP of the user's own pc or router or proxy is shown.
=============== =====
This is the same question you, David, asked and I answered on:
Subject: Re: I want to get the number IP
Date: Mon, 22 May 2006 20:22:27 +0200
Newsgroup: microsoft.publi c.inetserver.as p.general
My site is hosted on W2003 server SP1, IIS, ISA
I'm only using ASP no ASP.NET
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Hello Everybody,
My machine server give me a number IP but it's my server ISA that is my
firewall.
I wish I have the number IP of client.
How do i make it ?
I use this but it give me the same number.
<%
dim IPAddr
IPAddr = Request.ServerV ariables("remot e_addr")
Response.Write( "Your IP Address is " & IPAddr)
IPAddr = Request.ServerV ariables("remot e_host")
Response.Write( "Your IP Address is " & IPAddr)
%>
Regards,
David
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ************@19 4.109.133.242.. . David Velazco wrote on 26 mei 2006 in microsoft.publi c.inetserver.as p.general:
Hello Everybody,
I try to use script to get client IP
<% dim IPAddr IPAddr = Request.ServerV ariables("remot e_addr") Response.Write( "Your IP Address is " & IPAddr) %>
but script return IP of Web site, not CLIENT and not null value!
This is not true.
The IP of the user's own pc or router or proxy is shown.
=============== =====
This is the same question you, David, asked and I answered on:
Subject: Re: I want to get the number IP Date: Mon, 22 May 2006 20:22:27 +0200 Newsgroup: microsoft.publi c.inetserver.as p.general
My site is hosted on W2003 server SP1, IIS, ISA
I'm only using ASP no ASP.NET
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ************@19 4.109.133.242.. . David Velazco wrote on 26 mei 2006 in microsoft.publi c.inetserver.as p.general:
Hello Everybody,
I try to use script to get client IP
<% dim IPAddr IPAddr = Request.ServerV ariables("remot e_addr") Response.Write( "Your IP Address is " & IPAddr) %>
but script return IP of Web site, not CLIENT and not null value! This is not true.
The IP of the user's own pc or router or proxy is shown.
Not if the web server is behind a ISA server, then it will show the ISA
server as the client =============== =====
This is the same question you, David, asked and I answered on:
Subject: Re: I want to get the number IP Date: Mon, 22 May 2006 20:22:27 +0200 Newsgroup: microsoft.publi c.inetserver.as p.general
My site is hosted on W2003 server SP1, IIS, ISA
I'm only using ASP no ASP.NET
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Slim wrote on 27 mei 2006 in microsoft.publi c.inetserver.as p.general: The IP of the user's own pc or router or proxy is shown.
Not if the web server is behind a ISA server, then it will show the ISA server as the client
Why would you do that? Is hiding a server a usefull idea?
I suppose the OP would have to use another server as an intermediate, but I
would have to sleep on it getting a solution.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ************@19 4.109.133.242.. . Slim wrote on 27 mei 2006 in microsoft.publi c.inetserver.as p.general:
The IP of the user's own pc or router or proxy is shown.
Not if the web server is behind a ISA server, then it will show the ISA server as the client
Why would you do that? Is hiding a server a usefull idea?
ISA is very useful if you are hosting many web sites on one IP for example.
you can send requests to the web site based on the domain name entered.
Yes you can do this by using hostheaders in IIS, but that causes other
problems like connecting with visual studio though FrontPage extensions for
example
depending on what David wants to know the clients ip for, maybe ISA can do
the job for him.
ISA gives a log of client ip's, it can also block certain ip's, but if he
needs it for his asp code, hen I don't have a answer I suppose the OP would have to use another server as an intermediate, but I would have to sleep on it getting a solution.
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
> Yes you can do this by using hostheaders in IIS, but that causes other problems like connecting with visual studio though FrontPage extensions for example
ummm, no
I can do that no problem and my colocated 2003 Server is using host
headers...
"Slim" <me@here.com> wrote in message
news:Ov******** ******@TK2MSFTN GP03.phx.gbl... "Evertjan." <ex************ **@interxnl.net > wrote in message news:Xn******** ************@19 4.109.133.242.. . Slim wrote on 27 mei 2006 in microsoft.publi c.inetserver.as p.general:
The IP of the user's own pc or router or proxy is shown.
Not if the web server is behind a ISA server, then it will show the ISA server as the client
Why would you do that? Is hiding a server a usefull idea?
ISA is very useful if you are hosting many web sites on one IP for example. you can send requests to the web site based on the domain name entered.
Yes you can do this by using hostheaders in IIS, but that causes other problems like connecting with visual studio though FrontPage extensions for example
depending on what David wants to know the clients ip for, maybe ISA can do the job for him. ISA gives a log of client ip's, it can also block certain ip's, but if he needs it for his asp code, hen I don't have a answer
I suppose the OP would have to use another server as an intermediate, but I would have to sleep on it getting a solution.
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
"Kyle Peterson" <ky*****@hotmai l.com> wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. Yes you can do this by using hostheaders in IIS, but that causes other problems like connecting with visual studio though FrontPage extensions for example ummm, no
I can do that no problem and my colocated 2003 Server is using host headers...
Try using the server admin with host headers
"Slim" <me@here.com> wrote in message news:Ov******** ******@TK2MSFTN GP03.phx.gbl... "Evertjan." <ex************ **@interxnl.net > wrote in message news:Xn******** ************@19 4.109.133.242.. . Slim wrote on 27 mei 2006 in microsoft.publi c.inetserver.as p.general:
> The IP of the user's own pc or router or proxy is shown.
Not if the web server is behind a ISA server, then it will show the ISA server as the client
Why would you do that? Is hiding a server a usefull idea?
ISA is very useful if you are hosting many web sites on one IP for example. you can send requests to the web site based on the domain name entered.
Yes you can do this by using hostheaders in IIS, but that causes other problems like connecting with visual studio though FrontPage extensions for example
depending on what David wants to know the clients ip for, maybe ISA can do the job for him. ISA gives a log of client ip's, it can also block certain ip's, but if he needs it for his asp code, hen I don't have a answer
I suppose the OP would have to use another server as an intermediate, but I would have to sleep on it getting a solution.
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Michael Rybak |
last post by:
hi, everyone.
I'm writing a 2-players game that should support network mode. I'm now
testing it on 1 PC since I don't have 2. I directly use sockets, and
both client and server do computations, the only data transfered is
user mouse/kbd input.
It works synchronously, but somehow, when I play in client window,
both client and server have 17 fps, while when playing in server
window, server has 44 fps while client ...
|
by: cjl |
last post by:
Hey all:
I know that it is silly in the age of Google to 'lose' something on the
internet, but I recently checked out a project that had implemented a
database with a subset of SQL in pure client-side javascript.
I forgot to bookmark it, and now I can't find it.
Anyone?
|
by: Timothy Shih |
last post by:
Hi,
I am having a freezing issue with my application. My application serves
several remotable objects, all of which must be initialized before their
use. Furthermore, some of them depend on each other. On my application
startup, I configure the objects usting the RemotingConfiguration class to
load the config file. Then I "ping" each of the objects to call their
constructors. This all works fine if no one is attempting to connect at the...
|
by: Ken Allen |
last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other
languages and done some COM work for a number of years. I am attempting to
understand how to map an older program architecture into .Net -- not looking
to do it at this time, just to understand how I would achieve it.
In the old environment, we had two classes, a client and a server class,
that managed a data object. The server object knew how to interface with the...
|
by: rs |
last post by:
how I the client tell the server that the socket is closed? or this there an
even that informs the server that the clients socket is close?
Oh, I am using vb.net 2003
Thanks
| |
by: Ankit Aneja |
last post by:
i am doing here some some socket-client work in C# windows service
it is working fine for multiple clients
now i want to limit these multiple clients to 25 for example
i want that when service starts objects for all these 25 clients
are created and when client connects it should be accepted and will not
allow more than 25 clients to connect
and when client diconnects that object can be allocated to another client
who requests
i am not...
|
by: J Huntley Palmer |
last post by:
I am having a horrific time integrating uw-imap's c-client for imap
support in php. The problem is a whole bunch of "Text relocation remains
referenced against symbol" errors during
linking. Any help appreciated!
The ordeal is a follows
I am using Solaris 10 with php5.1.1.
GCC:
|
by: khu84 |
last post by:
Here is client server very simple code, seems to work with telnet but with with web client code gives blank output.
Following is the server code:-
<?php
function createSocketServer($host='192.168.1.34',$port=2222)
{
$max_clients = 10;
|
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 server machine IP for client and server) please guide me?
server :
#include <winsock2.h>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <windows.h>
#pragma comment(lib, "ws2_32");
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |