Ends in:
7 DAYS
13 HRS
21 MIN
34 SEC
Ends in:
7 D
13 H
21 M
34 S
Open Closed

How to get user IP in Application #4250


User avatar
0
deathmid2233@gmail.com created

How to get user IP in Application?

  • ABP Framework version: v6.0.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

1 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    I don't think this issue is related to ABP. You can get it in ABP as in a normal ASP.NET application. Here are a few resources you can check out:

    1. https://github.com/abpframework/abp/blob/8236b83268228a8d1a2c1c90cc483b55c00a9d53/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/WebClientInfo/HttpContextWebClientInfoProvider.cs#L30-L41
    2. https://stackoverflow.com/questions/28664686/how-do-i-get-client-ip-address-in-asp-net-core
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06