Re: How can i get my IP in LAN??

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 04/12/04

  • Next message: RB Smissaert: "Code for port sniffer?"
    Date: Mon, 12 Apr 2004 08:32:04 -0400
    
    

    http://vbnet.mvps.org/code/network/getadaptersinfo-localipaddress.htm or
    http://vbnet.mvps.org/code/network/iplookup.htm

    The first enumerates adapters returning the IP, while the second - which can
    be used with a local or remote machine, or a URL - returns the IP associated
    with the specified item.

    Note that none will return the IP address the world sees if you are behind a
    router - these return the IP address assigned to the machine.

    -- 
    Randy Birch
    MVP Visual Basic
    http://vbnet.mvps.org/
    Please respond only to the newsgroups so all can benefit.
    "peilin" <peilin@ckg.com> wrote in message 
    news:eVOJrJHIEHA.3840@TK2MSFTNGP11.phx.gbl...
    Hi, all
      I want to get my IP in LAN(not 127.0.0.1) with API, how can i get it??
        Thanks for any help! 
    

  • Next message: RB Smissaert: "Code for port sniffer?"

    Relevant Pages


    Loading