Is there any way to distinguish the request in server is through internet or intranet?
-
Hi All, I have an ASP.Net web application. Users are able to access this application through internet as well as through intranet (LAN). My requirement is like this - The web page should show different welcome messages for Internet user and Intranet (LAN) user. Is there any way to do that in ASP.Net? Thanks in Advance.
SoftwareDeveloper(.NET)
-
Hi All, I have an ASP.Net web application. Users are able to access this application through internet as well as through intranet (LAN). My requirement is like this - The web page should show different welcome messages for Internet user and Intranet (LAN) user. Is there any way to do that in ASP.Net? Thanks in Advance.
SoftwareDeveloper(.NET)
-
Why Dont You compare the ip address of yours and the clients ..!
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
Hi Sashidhar, Thanks much for your quick reply. Let me please go in to more details of the requirement. You are right we can compare if the LAN access IP is one in the case. In our case we need to deploy the application to many client sites, there again the LAN ip would be different. We have thought about keeping a configuration in the table to identify the known ips and assuming all other requests are from internet..But intead of taking that way , would like to know any easiest or simple way in .Net to identify the request. I mean to distinguish it to LAN or internet. It would be nice to learn that information if we have any options. And If we get a confirmation that there is no direct way then can proceed in the alternate.. Thanks.
SoftwareDeveloper(.NET)
-
Hi Sashidhar, Thanks much for your quick reply. Let me please go in to more details of the requirement. You are right we can compare if the LAN access IP is one in the case. In our case we need to deploy the application to many client sites, there again the LAN ip would be different. We have thought about keeping a configuration in the table to identify the known ips and assuming all other requests are from internet..But intead of taking that way , would like to know any easiest or simple way in .Net to identify the request. I mean to distinguish it to LAN or internet. It would be nice to learn that information if we have any options. And If we get a confirmation that there is no direct way then can proceed in the alternate.. Thanks.
SoftwareDeveloper(.NET)
Siju-T wrote:
In our case we need to deploy the application to many client sites,
We Can get the main Ip Address i.e.parent.So If You deploy any where, Asp.net can return the parent address so there is No problem where you deploy it.As long as it is deployed in their own productions..!
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
-
Siju-T wrote:
In our case we need to deploy the application to many client sites,
We Can get the main Ip Address i.e.parent.So If You deploy any where, Asp.net can return the parent address so there is No problem where you deploy it.As long as it is deployed in their own productions..!
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
Ok..Suppose if we got the ip. From that how can find out the request came through internet or intranet. Hardcoding ip is not possible unfortunately per requirement. More over the module is a generalized module and will be used in many different applications and clients. if we need to hard code and track the ip for each client it would be little difficult..But that would be the last option..The important thing is not to take another way to reach the destination. It would be nice if we get an information that whether it is possible or not. I mean is there any method can find out the request is from internet or intranet. But if you can confirm that , the way is not possible to find out then we can take the other route. But really curious to know whether it is possible or not in .Net. Thanks.
SoftwareDeveloper(.NET)
-
Ok..Suppose if we got the ip. From that how can find out the request came through internet or intranet. Hardcoding ip is not possible unfortunately per requirement. More over the module is a generalized module and will be used in many different applications and clients. if we need to hard code and track the ip for each client it would be little difficult..But that would be the last option..The important thing is not to take another way to reach the destination. It would be nice if we get an information that whether it is possible or not. I mean is there any method can find out the request is from internet or intranet. But if you can confirm that , the way is not possible to find out then we can take the other route. But really curious to know whether it is possible or not in .Net. Thanks.
SoftwareDeveloper(.NET)
My Friend First Listen..! You have an application which is deployed in host .i.e. In Your Company with parent Ip address.xxx.xxx.xxx.xxx The People who are working in your company will have the same parentIp address. So what is the problem in that. Dont think too much..! Its an easy One You can do it..!:cool::thumbsup: all the best..!
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
-
My Friend First Listen..! You have an application which is deployed in host .i.e. In Your Company with parent Ip address.xxx.xxx.xxx.xxx The People who are working in your company will have the same parentIp address. So what is the problem in that. Dont think too much..! Its an easy One You can do it..!:cool::thumbsup: all the best..!
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
Sashidar, I am bit confused now..sorry I cannot pick your solution. Here is my doubt. Client machine send a request to the Server. In server how we can get the client's parent ip. Similarly it would be nice if you can share a code snippet or psuedocode etc. Thanks.
SoftwareDeveloper(.NET)
-
Sashidar, I am bit confused now..sorry I cannot pick your solution. Here is my doubt. Client machine send a request to the Server. In server how we can get the client's parent ip. Similarly it would be nice if you can share a code snippet or psuedocode etc. Thanks.
SoftwareDeveloper(.NET)