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

Get client IP from behind a firewall?

Hi!

I would like to get a web client's IP where the client is behind a firewall.
I googled but hasn't found any solution with javascript that work's. There
seems to be a java applet that can do this, but i would like the applet to
put it into a "hidden" tag or into a textbox on the HTML page, so when the
user clicks "OK" it will be posted to my PHP script.

Any ideas, link's, tip are most welcome!

Thank's!
Jul 23 '05 #1
5 5579
Mats wrote:
Hi!

I would like to get a web client's IP where the client is behind a firewall.
I googled but hasn't found any solution with javascript that work's.
Thats because there is no solution to obtaining the IP address via
Javascript.
There seems to be a java applet that can do this, but i would like the applet
to put it into a "hidden" tag or into a textbox on the HTML page, so when the
user clicks "OK" it will be posted to my PHP script.
And why do you think you need my IP Address? It's worthless to you as it
changes at least 3 times a day.

Any ideas, link's, tip are most welcome!
Stop trying to determine something that doesn't matter to begin with.
Thank's!


Welcome.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
Lee
Mats said:

Hi!

I would like to get a web client's IP where the client is behind a firewall.


Why would you possibly want that?
Why not look for a script to determine their shoe size?

Jul 23 '05 #3
In article <JW*****************@newsb.telia.net>,
"Mats" <sp*********************@telia.com> wrote:
I would like to get a web client's IP where the client is behind a firewall.


What do you want to do with the IP address. Perhaps if it is a security
concern, people in this form or some other forum could off some doable
suggestions.

I'd like to know how people manage a security. How do people know the
data is coming back from the same computer that they sent the data and
how do they track that it is the same computer through three
interactions.

Pointers to a simple explanation of this would be helpful.

( Don't worry to much about my questions.. It isn't pressing. )

Robert
Jul 23 '05 #4

"Randy Webb" <Hi************@aol.com> skrev i meddelandet
news:t_********************@comcast.com...
Mats wrote:
Hi!

I would like to get a web client's IP where the client is behind a firewall. I googled but hasn't found any solution with javascript that work's.


Thats because there is no solution to obtaining the IP address via
Javascript.
There seems to be a java applet that can do this, but i would like the applet to put it into a "hidden" tag or into a textbox on the HTML page, so when the user clicks "OK" it will be posted to my PHP script.


And why do you think you need my IP Address? It's worthless to you as it
changes at least 3 times a day.


I don't need your IP, i need the IP of the machines of the sites where i
work. I'm about doing an inventory of IP adresses. I thought it would save a
lot of work if i could email a link to a webpage where everybody could fill
in their name/location/section and press submit and all went nicely into a
database. It's too complicated for many users to have to find out their own
IP (this involves about 200 users).

This works fine however on our local and normally routed net's because we
don't have a firewall between them and i can use PHP's
$_SERVER['REMOTE_ADDR'], however som offices are linked up to us by VPN and
ADSL through the internet and then i only get their dynamic IP from the
outside of their firewall.
Any ideas, link's, tip are most welcome!


Stop trying to determine something that doesn't matter to begin with.
Thank's!


Welcome.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #5
I don't need your IP, i need the IP of the machines of the sites where i
work. I'm about doing an inventory of IP adresses. I thought it would save a


Your best bet is to send you users instructions on where to get the IP
address from (it's really not very hard) or install a small app on each
machine that reports the IP address (like where I work). The reason the
sys admins want it is to get remote access the PC - they ring up, ask me
to run the app (it's in the system tray), I tell them the address, they
use it to log in, I click a "yes, allow this user access" dialog, and
they do their thing.

JavaScript can't help.

Fred
Jul 23 '05 #6

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

Similar topics

2
by: Jo Voordeckers | last post by:
Hello all, I'm pretty new to the Java newsgroups so I apologize for dropping this into several maybe offtopic groups. I'm sorry! So on to my problem... I've come to a point in our RMI...
2
by: Matt | last post by:
Hi, we've got a database sitting behind a firewall running on port 1522. when I set up a tnsnames connection through the net8 assistant it all works fine, and tests are successful, but I can't...
6
by: Paul | last post by:
Hi, Is their a client side VBscript command that I can use to post the local IP address of the machine back to my web server. I want to obtain the client's side IP address of their machine....
2
by: R.A. | last post by:
Hi, I have a web service that process a client call. When a client makes a call to the web method the method needs to query some data from a client_A and return the data to the calling client_B....
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
1
by: rawCoder | last post by:
Hi, How does WS Eventing works around the problem of the subscriber client being a Winform Application and behind firewall / Proxy server? In Other Words ... If I have a Windows Form...
4
by: Goh | last post by:
Hi, I would like to know how can we implement a web page that intelligent enough to unique identify that pc have been visit before without any cookies and login user require. I have try...
5
by: adebiasio | last post by:
I have an application where the server needs to call the client. I have a framework working with .net remoting where the client and server are on the same network and the server can call the...
5
by: Stephane | last post by:
Hi, Sorry to double post this one, but I think it fits in this group. Is there a way to get the client IP from a web service? I keep receiving the server's IP address. From my web method, I...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.