Results 1 to 4 of 4

Thread: Auto-detect IP Address

  1. #1

    Thread Starter
    Fanatic Member eimroda's Avatar
    Join Date
    Jul 2000
    Location
    Philippines
    Posts
    642

    Auto-detect IP Address

    How can I detect the IP Address of the workstation where my program is curently running (Thorugh code)?
    On Error GoTo Hell

    Hell:
    Kill Me


    Food For Thought:

    - Do not judge a book... if you're not a judge!


  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    Use I client/server app I doubt the hostname would change so you can log on with the hostname then retreive the ip address. Use this code to get the ip address:

    VB Code:
    1. Private Sub Command1_Click()
    2. Text1.Text = Winsock1.RemoteHostIP
    3. End Sub
    Last edited by Nightwalker83; Jun 24th, 2002 at 07:13 PM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Umm u might be able to get it out of the Registry... you can pull other stuff out of it, why not the IP Address?
    Don't Rate my posts.

  4. #4
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    Check out the attachment
    Attached Files Attached Files

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

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