I am looking for a way to send the ip of the computer the program is run on through email, or if possible aim (or aol buddy list) or icq. How can read a computers ip through vb?
Printable View
I am looking for a way to send the ip of the computer the program is run on through email, or if possible aim (or aol buddy list) or icq. How can read a computers ip through vb?
Getting the computers IP is realy easy.
Just add a winsock controll to your project and a text box
and put the following code in a button or in the Form_Load event.
-LuminCode:text1.text = Winsock1.LocalIp
Hi
Its me again
I have posted a project at planet-source-code that might help you a little
http://216.5.163.42/vb/scripts/ShowC...txtCodeId=6717
-Lumin
Thanks man! That cleared things up a bit, but i still have some questions. Can i put ANY smtp server? Does it have to be a specific type? I would like to make the sendings happen automatically every 3 mnutes (use a timer right?)
My only advice about the smtp server is just to test.
you can sue online.no if you want to (thats my internet provider) just write your eMail in the reciver and then try diferent smtp servers like aol.com, hotmail.com and so on.
you will get the eMail if evrything works out. you might also try to put mail.smtpserver.com because some providers uses 'mail.' infront of their samtp servers.
yes using a timer should do the thing.
just put the event in the Form_Load and then make the time push the send button evry 3 min. but if you expect the IP to change you might want to refresh the IP textbox evry 2:59 minute so if it changes it will be updated before the program sends the IP.
got it? :)
-Lumin
how do I send attachments, with these emails lumin??
do you know?