Add try-except for X-Real-Ip