Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how access to sevlet intern and extern

Status
Not open for further replies.

tarasof

Technical User
Mar 25, 2005
5
DE
hello,
i have a servlet which should be accesible from local network and from WAN Network (inernet)
Is there a possibility to say tomcat to charge username and
password, when the Tomcat session (or connection to servlet) comm from internet?
I thought as secound possibility to check in servlet,if
the connection comm from WAN (internet), but how could i ask
this in servlet?
thank you
 
If I understand you correctly, you wish to have different passwords accepted for a servlet depending on whether the connection is from the LAN or the Internet, eg :

Connect from Internet - password is "abc"
Connect from LAN - password is "def"

Is this the case ?


--------------------------------------------------
Free Database Connection Pooling Software
 
not at all!!
if the connection is from internet, request pass
and than (if pass correct!) connect
otherwise (from local network) let ever connect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top