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

Home Posts Topics Members FAQ

What codes grab the IP address?

Hi All,

What codes grab the IP address?

Thanks,

Joe
Oct 8 '07 #1
7 1445
"JoeP" <Jo**@hotmail.comwrote in message
news:Oo**************@TK2MSFTNGP04.phx.gbl...
What codes grab the IP address?
From what...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 8 '07 #2
On Oct 8, 9:22 pm, "JoeP" <J...@hotmail.comwrote:
Hi All,

What codes grab the IP address?

Thanks,

Joe
Request.UserHostAddress
Request.ServerVariables["REMOTE_ADDR"]

Oct 8 '07 #3
I have a page where the user enters details like first , last name and need
to record the IP address from where the user came from.
Oct 8 '07 #4
"JoeP" <Jo**@hotmail.comwrote in message
news:uc**************@TK2MSFTNGP06.phx.gbl...
>I have a page where the user enters details like first , last name and need
to record the IP address from where the user came from.
OK. Alexey's given you the code for this.

However, be aware that you cannot rely on this at all, as an IP address is
extremely simple to spoof...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 8 '07 #5
Ok Thanks
Oct 9 '07 #6
Hi Mark,

Any other ideas?

Thanks,

Joe
Oct 9 '07 #7
"JoeP" <Jo**@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>However, be aware that you cannot rely on this at all, as an IP address
is extremely simple to spoof...
Any other ideas?
???

If somebody spoofs their IP address, there's nothing you can do about it...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 9 '07 #8

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

Similar topics

2
by: Daniel | last post by:
I'm working with strings that contain xml escape codes, such as '0' and need a way in python to unescape these back to their ascii representation, such as '&' but can't seem to find a python method...
12
by: Larry R. Baker | last post by:
Is it possible to grab a client side IP Address using JavaScript in an htm page? I have a web page hosted on a non-ASP server and I want a piece of code in JavaScript to grab the IP address of the...
2
by: MLH | last post by:
I cut a mail function off the m'soft site. Has always worked. However, I would like to include error codes returned by the sendmail Fn and be able to understand what they mean. I had my first...
28
by: Madhur | last post by:
Hello what about this nice way to open a file in single line rather than using if and else. #include<stdio.h> void main() { FILE *nd; clrscr();...
2
by: K.H. | last post by:
Hi Does anyone know how I can grab a video stream from an IP-address? There's a video web server for live image transmission in the Internet. Data transfer is accomplished via TCP/IP. The web cam...
7
by: Solel Software | last post by:
Hi, I have an XLS that I am looking to open in a web form and grab it's information into a Dataset. I have been able to do so but am having trouble with Zip Codes. When the Zip Code column in...
9
by: Cao Yi | last post by:
Hi, here's a fract of codes, and what's the line "scanf("%lf%*", &cvi)" doing? ============================= do { printf("\nCoefficient: "); scanf("%lf%*", &cvi); getchar(); } while (cvi <=...
3
by: dragonfly8563 | last post by:
Hi all, I created a listbox with employees' names and email addresses in it, and a button which grabs email address once it's clicked. Currently I can only pick up one address at a time, but I...
1
by: desturrr | last post by:
Hello all, I have small sized mp3 files that i can play via Java using JLayerPlayer that takes the address of mp3 files , JLayerPlayer objects can be played creating threads and starting. The...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.