Solved

VB.Net - Get IPAddress of User Computer

Posted on 2013-06-13
4
323 Views
Last Modified: 2013-06-13
Good Day Experts!

I have a little modification required for my application.  When the User performs and Add on one of the Tabs, I need to insert the IP Address of their computer into the record.

I have searched the net and am having trouble finding just the simple one IPAddress example.

Can you recommend a link to a how-to for this?

Thanks,
jimbo99999
0
Comment
Question by:Jimbo99999
  • 2
4 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39245019
Is this a web application, Forms app, or a console app?
0
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39245022
Private Sub GetIPAddress()
Dim strHostName As String
Dim strIPAddress As String
strHostName = System.Net.Dns.GetHostName()
strIPAddress = System.Net.Dns.GetHostByName(strHostName).AddressList(0).ToString()
MessageBox.Show("Host Name: " & strHostName & "; IP Address: " & strIPAddress)
End Sub

Open in new window


http://sourcecodemaster.com/vb-net/how-do-i-get-a-computers-name-and-ip-address-using-vb-net/
http://www.codeproject.com/Articles/13868/Get-the-client-s-IP-address-using-TcpClient-in-VB
0
 

Author Comment

by:Jimbo99999
ID: 39245052
It is a console app.
0
 

Author Closing Comment

by:Jimbo99999
ID: 39245944
Thanks for the help and the links. I have it working.  

Good day,
jimbo99999
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb.net help 4 34
VB.net Move a class from Solution Items to a project 2 32
location of a form 2 25
Import MySQL data into MS Access using VB.Net interface 5 26
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question