Results 1 to 2 of 2

Thread: detect my local ip urgent!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    1

    detect my local ip urgent!

    hi,

    i need a way to detect my local ip in vb.

    ran shell("ipconfig.exe") but it doesnot exaclty work the way i want it to.

    i need to get the ip and store it in a variable ipaddr.

    it isurgent so pls. help.
    regards

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: detect my local ip urgent!

    Press control+t

    Add the 'Microsoft Winsock Control'/'Winsock Control' to your project

    Put one on the form.

    The just do

    MsgBox Winsock1.LocalIP

    Pino

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