Last post Aug 24, 2016 06:56 AM by Yohann Lu
Aug 22, 2016 07:21 PM|sbuggle|LINK
This is got me the code moved to test and production are the same one thing not happening in production is seeing the user is on the network.
(HttpContext.Current.User as blah.Web.Infastructure.CustomPrincipal) != null &&
(HttpContext.Current.User as blah.Web.Infastructure.CustomPrincipal).IsOnNetwork)
the Production server is outside of the firewall but this always worked before.
The test server detects user is on network but on prod it does not. Please advise????
Aug 22, 2016 07:30 PM|PatriceSc|LINK
And what does IsOnNetwork? Could it be that it uses the IP address of a reverse proxy rather than a actual user IP external web address? What is even the purpose of knowing this?
Aug 24, 2016 06:56 AM|Yohann Lu|LINK
The test server detects user is on network
You can get the IP host of the remote client and check the IP (user) is on network.