Client IP Issue (wodWebServer / wodWebServer.NET)

by Jeremy, (3821 days ago)

I used "Request.UserHostAddress" to get client IP in ASP.NET, the value always return "127.0.0.1".

How could I get the real client IP in ASP.NET which is hosted on wodWebServer.NET?


This is a very simple ASP.NET example:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Response.Write(Request.UserHostAddress)
End Sub

locked

Client IP Issue

by Jasmine, (3821 days ago) @ Jeremy

Hi Jeremy.

This is also fixed in new version, so please re-download or request update.

Make sure you also update WeOnlyDo.Server.WebServer.dll in your WebSite1 folder (if using our samples) to bind it correctly from ASP.NET.

Regards,
Jasmine.

locked

Client IP Issue

by Jeremy, (3818 days ago) @ Jasmine

Thanks.

locked