How To Get IP Address in VB.NET

Last Updated 9/22/2020

Get the visitor's IP address in VB.NET

Whenever a browser sends a request for a page, it also sends a number of other headers to the script, containing information such as the browser type. It also includes information such as the visitors IP address.

In VB.NET you can get the IP address of your users from the Request.ServerVariables collection. The following VB.NET code will display the visitor’s IP:


To find sample programming code and tutorials how to get the visitor's IP address in ASP, ASP.NET, C#, PHP, JAVA, JavaScript and Perl check here: