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_PORT" 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 4 1890
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_PORT" 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
Lev Walkin <vl*@lionet.info> 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_PORT" 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.
Ben wrote: Lev Walkin <vl*@lionet.info> 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_PORT" 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
:)
Michael Austin <ma*****@firstdbasource.com> wrote in message news:<1_*****************@newssvr23.news.prodigy.c om>... Ben wrote:
Lev Walkin <vl*@lionet.info> 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_PORT" 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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
|
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,...
|
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...
| |
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,...
|
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: 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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |