diff --git a/src/Api/Controllers/MiscController.cs b/src/Api/Controllers/MiscController.cs index eec7e87abf..b01cd1a600 100644 --- a/src/Api/Controllers/MiscController.cs +++ b/src/Api/Controllers/MiscController.cs @@ -18,5 +18,15 @@ namespace Bit.Api.Controllers { return new VersionResponseModel(); } + + [HttpGet("~/ip")] + public JsonResult Ip() + { + return new JsonResult(new + { + Ip = HttpContext.Connection?.RemoteIpAddress?.ToString(), + Headers = HttpContext.Request?.Headers, + }); + } } }