A newer version of the Gradio SDK is available: 5.42.0
5.42.0
req.socket
req.connection
X-Forwarded-For