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
Merajuddin Ansari
NA
90
14.7k
unable to get some client computer name visiting my intranet
Dec 6 2017 12:47 AM
Hi,
i am unable to get some client computer name not all visiting my intranet site.any one can help me on this please.
public string GetComputerName(string clientIP)
{
try
{
var hostEntry = Dns.GetHostEntry(clientIP);
return hostEntry.HostName;
}
catch (Exception ex)
{
return string.Empty;
}
}
//call GetComputerName function
string computerName=GetComputerName(HttpContext.Current.Request.UserHostAddress)
Reply
Answers (
3
)
M4.1-R4: APPLICATION OF .NET TECHNOLOGY.
MVC-Pass Model data from View to Controller using Ajax