added checking of remote proxy ip