Hi,

I think while it is only proxy and not firewall, it's ok to send me also the
original address.

This a workaround of my problem:
I have a chat program which has two parts: client and daemon. Every user has
installed and is running daemon. When user logs in through the login page to
my system, I try to obtain his IP. This IP is then stored for later use.
That means, that another user is logged in, sees the names of other users
and by clicking on the name a chat client is run. This chat client uses the
that IP obtained while logging. However, this is the IP of proxy... Client
will never contact another users's chat daemon, so they are not able to
chat...

Is there any way to ask proxy for the original IP?

Thank you for help.

--jerry

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Venkatesh
Kumar A G
Sent: Tuesday, August 31, 1999 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: How to get IP address behind proxy?


Hi,
  Exactly as  Andrius says the IP address behind the proxy is
irrelevant as those machines are inaccessible.

  Also a Proxy should not expose the IP address of the machine
connected to the other side of it.

Thanks
Venkatesh


Andrius Juozapaitis wrote:

> IMHO, in most cases this should be irrelevant as IPs behind the proxies
may be
> intranet addresses,
> ie. 192.168.x.x, and you can't communicate with them directly anyway
>
> --andriux
>
> #YANG YUE XIANG# wrote:
>
> > How about getRemoteUser()..
> >
> > Regards
> > yuexiang
> >
> > -----Original Message-----
> > From: Juraj Kazda [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 30, 1999 6:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Q]: How to get IP address behind proxy?
> >
> > Hello,
> >
> > I have this problem:
> >
> > when I try to access my servlet from a HTML form, and the client is
behind a
> > proxy, then in my servlet I can't get his IP address (with
> > HttpServletRequest.getRemoteAddr()). The address returned by this method
is
> > the address of the proxy server. Can anyone help me? How to obtain his
real
> > address?
> >
> > Thank you.
> >
> > --jerry
> >
> >
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> --
> Andrius Juozapaitis
> Programmer, No Magic
> Kaunas, Lithuania
> Cell: +370-8534598
> WWW: <http://www.nomagic.com>
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to