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
Nitish Kumar Mishra
1.4k
303
3.7k
Client System IP address
Jul 9 2019 6:12 AM
In my project i am trying to fetch and save user sytem IP address ..it is working in local .
but when i am deploying it on server on every login it is saving server ip address instide of client local system address..
below are the code
string ipadd = "";
string strHostName = "";
strHostName = System.Net.Dns.GetHostName();
IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);
IPAddress[] addr = ipEntry.AddressList;
thanks
Reply
Answers (
2
)
automapper mapping in c#
How to use custom filters in Asp.Net core MVC