Add a null reference check
Added Mono+Linux support for GetClientIpAddress() from WCF