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

Query Regarding IP address

Hi,

Can anyone help me out in finding internal IP tracking code in ASP?

Generally we are using Request.ServerVariables("REMOTE_ADDR") to get remote IP but I want to know how we can get the internal IP address.

Hoping for a quick and positive response I remain.

Regards,
Mukti
"I am not the best but am not like the rest"
Oct 17 '07 #1
6 2072
JamieHowarth0
533 Expert 512MB
Hi there,

Do you mean when users are on an internal network that is connected to the Internet, how do you get their internal network IP address? If so, you shouldn't need it (and as a server administrator, no disrespect to your need but I don't want my internal IP patterns figured out by some third-party webmaster!).

However, you can get the web server's internal IP by using
Expand|Select|Wrap|Line Numbers
  1. <% Request.ServerVariables("LOCAL_ADDR") %>
. If you need just the public IP of a network then use
Expand|Select|Wrap|Line Numbers
  1. <% Request.ServerVariables("REMOTE_ADDR") %>
.

As far as I am aware there is no method of obtaining a non-public IP address using ASP but I would advise checking
Expand|Select|Wrap|Line Numbers
  1. <% Request.ServerVariables("ALL_RAW") %>
and seeing if you can see a non-public IP that a public routing device will then use to route any server responses back to the internal network client.

Hope it helps.

medicineworker
Oct 18 '07 #2
Thanks for your response,but what I exactly want is in an intranet there will be different IP addresses, for example 10.10.10.1,10.10.10.2,10.10.10.3,etc....I want to track those IPs.

I tried with giving Local_ADDR but its showing the local IP and its showing same in all system.and ALL_ROW also not showing what actual I want.Can you help me out in this regards.

If you can open the below link there its showing the Current IP address ,I want to track this type of IP for our own intranet but I want the ASP code and its in java and code also not there.

http://www.auditmypc.com/whats-my-ip.asp

Hoping for a quick reply I remain.

Thanks in advance.

Regards,
Mukti
Oct 18 '07 #3
jhardman
3,406 Expert 2GB
Mukti,

I think all of the information you have available is in the server variables, unless you use javascript or ajax to get additional info from the user and send it to the server. You could search all of the server variables separately (code follows) but this actually doesn't give you any more information than the "all_raw" that medicineworker already suggested:
Expand|Select|Wrap|Line Numbers
  1. for each x in request.serverVariables
  2.    response.write x & ": " & request.serverVariables(x) & "<br>" & vbNewLine
  3. next
Jared
Oct 18 '07 #4
JamieHowarth0
533 Expert 512MB
Mukti,

If the website is only accessible on an internal intranet then the user's internal IP will pop up in Request.ServerVariables("REMOTE_ADDR").
If the user is connecting to the network using a VPN and still only accessing the site using the internal DNS address then their VPN internal IP will come up under REMOTE_ADDR.

So I'm slightly confused as to what your precise requirements are? If you can clarify then it would be much appreciated.

medicineworker
Oct 19 '07 #5
Sorry to disturb you again and again but what exactly I want is when you will type ipconfig in your commandprompt,you can able to see the IP Address and default gateway. I want to know how we can track that IP Address.

You can see, that IP Address is different from your local IP Address.As we generally assign different IP's for different systems for the systems in Intranet.


Can you help me out?

Thanks in advance.

Regards,
Mukti
Oct 19 '07 #6
JamieHowarth0
533 Expert 512MB
Hi Mukti,

When you run IPCONFIG it brings up the IP addresses for your PC's network adapters.
If your PC is on an internal network that is connected to the Internet through a gateway (router/firewall/ADSL modem etc.) then it still comes up with the internal IP not the public (modem's) IP.

The main question is: is this website that you are developing only run inside the PC network or is it accessible on the Internet?

The reason I say this is because if you are running your own web server with the address blahblahtest.com and it is accessible to the whole Internet, then any of your internal network machines will have the page request routed out to your ISP to lookup the domain, then back into your network to your web server, so you will only see your own router IP when people inside the network access the website.

The way to run this is you need to run two websites separated by host header values - one to serve the Internet, and one to serve the intranet (assuming you are running an Active Directory domain internally?). You then specify in the website properties host headers - "www.blahblahtest.com" for your Internet-facing site and "internal.blahblahtest.int" for your intranet-facing site.

medicineworker
Oct 19 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Albert Ahtenberg | last post by:
Hi, I have a database with a date field. And I would like to see the report grouped by a ceratin month and year, how can I do that without multiple queries? Albert Ahtenberg
1
by: etravels | last post by:
Hiyas I am currently working on Oracle Report which ties in with my a report in the ebusiness suite of Oracle telesales module. Basically, the address on statement reports have blank fields...
1
by: John Smith | last post by:
I've been too far away from SQL for too long doing other-level things and my ancient addled brain isn't what it once was. Here's the deal: My wife is doing a small app in Access. I know zippo...
2
by: JMCN | last post by:
hi i have a general question regarding append queries in access 97. each week i need to update my table(tblonlinereg) with new or modified records. firstly, i import the text file into my...
4
by: Nicolae Fieraru | last post by:
Hi All, I have a Table1 with ID, Name, Address, Purchase. I want to build a query which shows all the records from Table1 (only fields ID, Name, Address), but there shouldn't be listed records...
5
by: Bob Quintal | last post by:
Opening one particular query in design mode shows a blank top half, where the tables should reside. the bottom half is what I expect to see with the field names over their table names over the sort...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
7
by: stig | last post by:
hi. coming from postgresql, i am used to textual references to most of the things i do with the database. i feel a little lost with all the graphical. i have few questions regarding MS SQL 2000...
17
by: NeoAlchemy | last post by:
I am starting to find more web pages that are using a query parameters after the JavaScript file. Example can be found at www.opensourcefood.com. Within the source you'll see: <script...
4
by: ama7777 | last post by:
hi all i am having a table in d form COLNAME VALUE NAME ABC ROLLNO 2 ADDRESS DELHI CLASS ...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.