TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ramsès Zogning II
NA
84
20.9k
How can I get the client's IP address in ASP.Net MVC 4 razor
Dec 12 2014 5:28 PM
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
Reply
Answers (
3
)
Create time Sheet use Asp.net
asp.net MVC