Client IP Issue - WeOnlyDo Discussion board

Client IP Issue (wodWebServer / wodWebServer.NET)

by Jeremy, Friday, November 14, 2014, 09:29 (3662 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

Client IP Issue

by Jasmine, Friday, November 14, 2014, 16:31 (3662 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.

Client IP Issue

by Jeremy, Monday, November 17, 2014, 08:03 (3660 days ago) @ Jasmine

Thanks.