I have a client that is connecting to a SignalR hub and I need to know its IP address so…
- User
I have a client that is connecting to a SignalR hub and I need to know its IP address so that I can configure a firewall. Is there some logging that would show up on AppInsights that I can use to see the IP address?
Assistant
Yes, you can find client IP addresses in Application Insights for SignalR connections. Here are a couple ways to get this information:
- Through Application Insights Logs (Kusto query):
coderequests | where operation_Name contains "negotiate" | project timestamp, client_IP, urlThe negotiate endpoint is called when clients initially connect to SignalR.
- You can also add explicit logging in your hub by accessing the client's IP address:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.