Skip to content

How to forward remote IP address for http in Blazor environment? #1748

Answered by raman-m
OnSive asked this question in Q&A
Discussion options

You must be logged in to vote

Well...

When I send a ws request to the Blazor Server Side
Get the remote ip address on http and ws request

Are you saying about WebSocket requests? Websockets feature?


Remote ip address is ::1 on http and "real" on ws.

Yeah, you see such facts because of different protocols, and they behave differently. Don't you ask us, as Ocelot team, to fix that? 🤣


    "DownstreamHostAndPorts": [
      {
        "Host": "localhost", // come on!
        "Port": 5000
      }
    ],

You use localhost and local environment PC to host the solution, and you wonder why do you have localhost addresses?
Come on!
What is your upstream settings in global section? I mean this:

    "GlobalConfiguration": {…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@OnSive
Comment options

@OnSive
Comment options

@raman-m
Comment options

@OnSive
Comment options

@raman-m
Comment options

Answer selected by raman-m
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;)
2 participants
Converted from issue

This discussion was converted from issue #1747 on October 19, 2023 13:22.