How do i identify the request is coming from Intranet or Internet??
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   OBUCHI_MACHINI
Posted On:   Tuesday, November 13, 2001 09:26 AM

We are developing a application where user's might be logging from Intranet or thro; Internet, If it is thro; Intranet I don;t need to show the login page,if it is Internet then I need to.
How do I achieve this? The Architecture does contain servlets

Re: How do i identify the request is coming from Intranet or Internet??

Posted By:   Bozidar_Dangubic  
Posted On:   Tuesday, November 13, 2001 10:32 AM

invoke getRemoteHost() on the request coming in. this will give you the name of the client that sent the request or the IP address if the name cannot be found. check the name against names of the computers on your intranet or IP addresses (easier since they will be on same mask) and display login screen if the client's name is unknown to you.
About | Sitemap | Contact