How to get Server IP in asp.net
How to get Server IP:
we can get the server Ip address in over Asp.net web site .
by code.friend it's very simple .here we wright code of asp.net you put it in page load and get ..........
- Response.Write(Request.UserHostAddress.ToString() + "<br>");
- Response.Write(HttpContext.Current.Request.UserHostAddress.ToString() + "<br>");
- Response.Write(HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToString() + "<br>");
- Response.Write(HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString() + "<br>");
here UserHostAddress have property for Ip address.
Other Asp.net Related Post:
- Cloud Service Provider
- Asp.net Label control
- Textbox Asp.net control
- Print pdf file in asp.net by C sharp
- SQL Server questions for interview
- Check box in ASP.NET GridView
- Ckeck box list example-using-javascript.
- Asp.net web api in asp.net programming
- How to achieve many selection in dropdownlist.
- Example of use of compare validator in asp.net.
- Find datetime difference in asp.net by C#
- Validation checkbox control using JavaScript
- Use of Viewstate in asp.net programming.
- How to add reference of dll file in asp.net.
- How to print div in asp.net programming
- Data base connection in asp.net in web Application
- Validate ASP.Net RadioButtonList using JavaScript Example
- Events in asp.net server controls how to handle in C#.
- Add rows in GridView dynamic with Textbox
- Asp.net Watermark Text on uploaded Image
- Asp.net NullReferenceException and how fix it
- State Management and type of State Management
- Cookies,how to make Cookies in asp.net with C#.
- Jquery Change div background on mouseover in asp.net
- In asp.net by jquery change div text color on mouseover
- Upload multiple by one asp.net fileupload control using jQuery
- Adding Dynamic Rows in ASP.Net GridView Control with Textbox
- In Asp.net Difference between ""(empty string) and String.Empty
Comments
Post a Comment