473,663 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

different ip addresses returned by different websites

Ben
Hi all,

I'm posting this to comp.lang.php and comp.protocols. tcp-ip.

I'm quite new to php. I made a simple test page in php with
"_SERVER[REMOTE_ADDR]" and "_SERVER[REMOTE_PORT]" server variables. I
uploaded my page in tripod.co.uk as they provide free php hosting. The
above variables gave me an ip address and port number. To double
check, I tried few other websites such as www.whatismyip.com and
http://checkip.dyndns.org. The first one gave me a different ip from
the one shown by my test page. The second one, however, showed exactly
the same ip address. I don't know what's going on? Isn't it meant to
be just ONE ip?

I am behind Wingate proxy which is on another pc on my home LAN. I use
dial-up to connect to ISP.

Now about "_SERVER[REMOTE_PORT]". In my test page, after few
refreshments, the REMOTE_PORT number also chages to new number. Why is
this? As far as I understand, "REMOTE_POR T" is the port my computer
uses to communicate with the web server. So every time I refresh, does
it assign a random port number?

Thanx
Ben
Jul 17 '05 #1
4 1898
Ben wrote:
Hi all,

I'm posting this to comp.lang.php and comp.protocols. tcp-ip.

I'm quite new to php. I made a simple test page in php with
"_SERVER[REMOTE_ADDR]" and "_SERVER[REMOTE_PORT]" server variables. I
uploaded my page in tripod.co.uk as they provide free php hosting. The
above variables gave me an ip address and port number. To double
check, I tried few other websites such as www.whatismyip.com and
http://checkip.dyndns.org. The first one gave me a different ip from
the one shown by my test page. The second one, however, showed exactly
the same ip address. I don't know what's going on? Isn't it meant to
be just ONE ip?
Noone guaranteed you that, right? Maybe, there is a NAT somewhere
on the way to your website (or even a reverse NAT near the free PHP hosting).
I am behind Wingate proxy which is on another pc on my home LAN. I use
dial-up to connect to ISP.

Now about "_SERVER[REMOTE_PORT]". In my test page, after few
refreshments, the REMOTE_PORT number also chages to new number. Why is
this? As far as I understand, "REMOTE_POR T" is the port my computer
uses to communicate with the web server. So every time I refresh, does
it assign a random port number?


Yes. It is extremely likely that the each refresh makes another connection
to the remote site, picking the next available port number. It is usually
not random (it's sequential), although it well may be under your OS.

--
Lev Walkin
vl*@lionet.info
Jul 17 '05 #2
Ben
Lev Walkin <vl*@lionet.inf o> wrote in message news:<2l******* *****@uni-berlin.de>...
Ben wrote:
Hi all,

I'm posting this to comp.lang.php and comp.protocols. tcp-ip.

I'm quite new to php. I made a simple test page in php with
"_SERVER[REMOTE_ADDR]" and "_SERVER[REMOTE_PORT]" server variables. I
uploaded my page in tripod.co.uk as they provide free php hosting. The
above variables gave me an ip address and port number. To double
check, I tried few other websites such as www.whatismyip.com and
http://checkip.dyndns.org. The first one gave me a different ip from
the one shown by my test page. The second one, however, showed exactly
the same ip address. I don't know what's going on? Isn't it meant to
be just ONE ip?


Noone guaranteed you that, right? Maybe, there is a NAT somewhere
on the way to your website (or even a reverse NAT near the free PHP hosting).


So how do I determine my actual IP address? Is it the one shown by PHP
hosting or the one shown by www.whatismyip.com? Or do these 2 IP
addresses map to the same thing (something like symbolic link under
Linux filesystem)?
I am behind Wingate proxy which is on another pc on my home LAN. I use
dial-up to connect to ISP.

Now about "_SERVER[REMOTE_PORT]". In my test page, after few
refreshments, the REMOTE_PORT number also chages to new number. Why is
this? As far as I understand, "REMOTE_POR T" is the port my computer
uses to communicate with the web server. So every time I refresh, does
it assign a random port number?


Yes. It is extremely likely that the each refresh makes another connection
to the remote site, picking the next available port number. It is usually
not random (it's sequential), although it well may be under your OS.

Jul 17 '05 #3
Ben wrote:
Lev Walkin <vl*@lionet.inf o> wrote in message news:<2l******* *****@uni-berlin.de>...
Ben wrote:
Hi all,

I'm posting this to comp.lang.php and comp.protocols. tcp-ip.

I'm quite new to php. I made a simple test page in php with
"_SERVER[REMOTE_ADDR]" and "_SERVER[REMOTE_PORT]" server variables. I
uploaded my page in tripod.co.uk as they provide free php hosting. The
above variables gave me an ip address and port number. To double
check, I tried few other websites such as www.whatismyip.com and
http://checkip.dyndns.org. The first one gave me a different ip from
the one shown by my test page. The second one, however, showed exactly
the same ip address. I don't know what's going on? Isn't it meant to
be just ONE ip?


Noone guaranteed you that, right? Maybe, there is a NAT somewhere
on the way to your website (or even a reverse NAT near the free PHP hosting).

So how do I determine my actual IP address? Is it the one shown by PHP
hosting or the one shown by www.whatismyip.com? Or do these 2 IP
addresses map to the same thing (something like symbolic link under
Linux filesystem)?

I am behind Wingate proxy which is on another pc on my home LAN. I use
dial-up to connect to ISP.

Now about "_SERVER[REMOTE_PORT]". In my test page, after few
refreshments , the REMOTE_PORT number also chages to new number. Why is
this? As far as I understand, "REMOTE_POR T" is the port my computer
uses to communicate with the web server. So every time I refresh, does
it assign a random port number?


Yes. It is extremely likely that the each refresh makes another connection
to the remote site, picking the next available port number. It is usually
not random (it's sequential), although it well may be under your OS.


is the IP always different or only sometimes different -- and are you on DSL or
Cable or Dialup?

port number assignments are dynamic and will change with each connection - and a
refresh is a new connection.

--
Michael Austin.
Consultant - Available.
Donations welcomed. Http://www.firstdbasource.com/donations.html
:)
Jul 17 '05 #4
Ben
Michael Austin <ma*****@firstd basource.com> wrote in message news:<1_******* **********@news svr23.news.prod igy.com>...
Ben wrote:
Lev Walkin <vl*@lionet.inf o> wrote in message news:<2l******* *****@uni-berlin.de>...
Ben wrote:

Hi all,

I'm posting this to comp.lang.php and comp.protocols. tcp-ip.

I'm quite new to php. I made a simple test page in php with
"_SERVER[REMOTE_ADDR]" and "_SERVER[REMOTE_PORT]" server variables. I
uploaded my page in tripod.co.uk as they provide free php hosting. The
above variables gave me an ip address and port number. To double
check, I tried few other websites such as www.whatismyip.com and
http://checkip.dyndns.org. The first one gave me a different ip from
the one shown by my test page. The second one, however, showed exactly
the same ip address. I don't know what's going on? Isn't it meant to
be just ONE ip?

Noone guaranteed you that, right? Maybe, there is a NAT somewhere
on the way to your website (or even a reverse NAT near the free PHP hosting).
So how do I determine my actual IP address? Is it the one shown by PHP
hosting or the one shown by www.whatismyip.com? Or do these 2 IP
addresses map to the same thing (something like symbolic link under
Linux filesystem)?

I am behind Wingate proxy which is on another pc on my home LAN. I use
dial-up to connect to ISP.

Now about "_SERVER[REMOTE_PORT]". In my test page, after few
refreshments , the REMOTE_PORT number also chages to new number. Why is
this? As far as I understand, "REMOTE_POR T" is the port my computer
uses to communicate with the web server. So every time I refresh, does
it assign a random port number?

Yes. It is extremely likely that the each refresh makes another connection
to the remote site, picking the next available port number. It is usually
not random (it's sequential), although it well may be under your OS.


is the IP always different or only sometimes different -- and are you on DSL or
Cable or Dialup?


IP has always been different.. I am using Dialup. I am behind Wingate
proxy and sharing internet connection.

Ben
port number assignments are dynamic and will change with each connection - and a
refresh is a new connection.

Jul 17 '05 #5

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

Similar topics

0
3269
by: Jim Adams | last post by:
In an Exchange environment, a user can have several SMTP email addresses in addition to their default SMTP address. When querying the "mail" property of a user, only the default SMTP address is returned. How can all of a user's Exchange SMTP email addresses be returned? Thanks,
87
3315
by: j0mbolar | last post by:
I've read in the standard that addresses basically can't be interpreted as integers. If they can, it is implementation defined behavior. However, if they can't be viewed as integers in any sense as far as portability goes, what then, should one think of addresses being composed of?
11
5003
by: Paul Fi | last post by:
How can i determine IP Address of my machine at runtime without providing any information like HostName? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
0
764
by: Patrick.O.Ige | last post by:
Hi All, I have 2-3 websites with different IP address running on one IIS. And when trying to create a web project on IIS i get the error:- Unable to create Web Project 'WebApplication1' the file path does not correspond to the URL .The two need to map to the same server location. HTTP 404:Object Not found. Can i run different IP addresses on one IIS server? Any ideas how to go around this?
1
1156
by: Nathan Sokalski | last post by:
I am making an application that will be used to send an email message to all members in a certain group (such as maybe all exec board, or all IT, or all secretaries, etc.). However, as we all know the may occasionally be a misspelled email or, more often, someone's email is not working, or for whatever reason an address returns the message. I want to avoid having this error displayed, but I still need to know which addresses it did not get...
15
5802
by: Neo | last post by:
Hello All, I found that ASP.net website only accepts code withing site directory. This creates big hurdle in shairng code. How to share code between two websites, like the way share between two non-website code? -Pravin
10
2572
by: john | last post by:
I have a report to print envelopes. The report is based on a query. Now I need to make 10 more queries to make different selections of addresses. Every query has the same output fields as the already existing query. I know I can copy the report and base it on another query but then I would have to make 10 extra reports. How can I use just one report for all of the queries? At the moment I use the button wizard in my forms to make buttons...
1
1698
by: Etayki | last post by:
Hi! I am building a website that has two frames with a vertical divide. Each frame displays a page from a different websites (such that the site visitor can view two websites on my one web page). Of course, this results in the nasty issue of horizontal scrolling.
45
4429
by: Dennis | last post by:
Hi, I have a text file that contents a list of email addresses like this: "foo@yahoo.com" "tom@hotmail.com" "jerry@gmail.com" "tommy@apple.com" I like to
0
8436
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8771
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 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...
1
8548
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,...
0
8634
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 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...
0
7371
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
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...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1757
bsmnconsultancy
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...

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.