Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
How can I get the client's IP address in ASP.Net MVC 4 razor
Ramsès Zogning II
9y
1.8k
1
Reply
How can I get the client's IP address in ASP.Net MVC
4 razor and put it in the table of my Model ?
i tried this :
var Ip = this.HttpContext.Request.ServerVariables["REMOTE_ADDR"];
but it's return me "::1"
i suppose that it's in ipv6
it's a true Ip on my computer (or browser). If it's true, i will not affray because i know that i'm connet to a localhost of visual.
Plz help me
Thank
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Create time Sheet use Asp.net
asp.net MVC