Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / June 2005

Tip: Looking for answers? Try searching our database.

Applet that detects ip behind anon proxy...

Thread view: 
rked@att.net - 08 Jun 2005 00:47 GMT
Does anyone here know of such an applet?
thankyou
Matt Humphrey - 08 Jun 2005 20:47 GMT
> Does anyone here know of such an applet?

I'm not sure what you're asking--I think you're saying you want to be able
to host an applet such that when a user uses it, it can show them (and the
server it came from) their public IP address even if the client is behind an
anonymous proxy?

An anonymous proxy rewrites incoming requests and resubmits them to the
actual server elsewhere. One request will be to retrieve the applet and
another if the applet makes some kind of request on its own. If the applet
(running in the client's browser) is making requests to its code base
server, the code base will be the proxy server who will be able to see the
client's public IP (but not care) and the requests will simply be re-made
from the proxy which will instead appear as the request source.  If the
applet makes the requests directly to its home server (built-in server
name), the requests would (if they got through) would show the applet's
public IP address.  However, these requests will cause a security exception
because the applet can only talk to the server from which the browser loaded
it.

So the answer is, I don't think it's possible with an applet unless you get
the user to give permission (via signing, policy, etc.)  Note that there may
be bugs that make this possible, but that's another matter.

Cheers,
Matt Humphrey  matth@ivizNOSPAM.com  http://www.iviz.com/
The Wogster - 09 Jun 2005 13:20 GMT
> Does anyone here know of such an applet?
> thankyou

Wondering what your actually looking for, there are 3 possible IP
addresses, depending on the setup of the access machine.

1) The proxy server
2) The firewall
3) The actual client machine

If you have a proxy server, you probably also have a firewall, without a
firewall there is no need to use a proxy server.  Firewalls (and
routers) often use a technique called NAT (Network Address Translation),
which means that you only need 1 public IP address for potentially
thousands of machines.

For example I have 3 machines here, Leafs, Habs, Sens, they are
connected to a 4th machine the firewall.  The firewall is an old PC
running Smoothwall Express 2.0, which has all of the updates applied
(except the last one, which I downloaded this morning).

Now my setup uses DHCP because I find that using that is easier then
trying to manage IP addresses, even though there are only 4 machines
that can be physically hooked up.  However the pool of addresses it uses
are between 192.168.0.2 and 192.168.0.200, addresses which are reserved
for local network only use.  The firewall uses NAT to make it all work.

Now back to the original question:

Any applet that gets the Firewall address probably can't do anything
with it, any applet from outside the firewall that gets the internal
address is looking at junk.  Proxy addresses probably don't mean much
either.  If your inside the firewall, just ping the machine name.

W


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.