string str = (Request.HttpContext.Connection.LocalIpAddress.MapToIPv4().ToString() + ":" + Request.HttpContext.Connection.LocalPort;

最终可以得到本地IP及访问端口.

相关文章:

  • 2021-07-28
  • 2021-05-15
  • 2022-12-23
  • 2021-12-04
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-21
  • 2022-02-04
  • 2021-11-12
  • 2022-12-23
  • 2021-06-26
相关资源
相似解决方案