Want a function for two IP's one real one local
Posted: Fri Feb 20, 2009 12:51 am
Dear Sirs,
I have a site for a company. And this company has real Ip's and exchange server.
One of the real IP's is for the exchange server then we can access it from outsite the company, and the link for it is on the site.
The problem is we cann't access the link from inside the company because we cann't use the real IP's from inside the company and we are using them for our internet connection.
I need a function to be used for this case:
If the user want to access the link for the exchange from inside the company the link should takes him to the local IP for the exchange (example : https://192.168.100.1/owa), and if the user want to access the link for the exchange from outside the company the link should takes him to the real IP for the exchange (example: https://77.225.125.81/owa) .
Then the function should read the local user IP to see if it from inside or outside the company.
Thank you a lot,
Best Regards.
I have a site for a company. And this company has real Ip's and exchange server.
One of the real IP's is for the exchange server then we can access it from outsite the company, and the link for it is on the site.
The problem is we cann't access the link from inside the company because we cann't use the real IP's from inside the company and we are using them for our internet connection.
I need a function to be used for this case:
If the user want to access the link for the exchange from inside the company the link should takes him to the local IP for the exchange (example : https://192.168.100.1/owa), and if the user want to access the link for the exchange from outside the company the link should takes him to the real IP for the exchange (example: https://77.225.125.81/owa) .
Then the function should read the local user IP to see if it from inside or outside the company.
Thank you a lot,
Best Regards.