Results 1 to 6 of 6

Thread: post an ip or send through email/icq?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17
    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?

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143
    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.

    Code:
    text1.text = Winsock1.LocalIp
    -Lumin

  3. #3
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143
    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

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17

    thanks!

    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?)

  5. #5
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143
    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

  6. #6
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Attachments?

    how do I send attachments, with these emails lumin??
    do you know?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width