[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::windows-nt

Title:Windows NT
Notice:See note 15.0 for HCL location
Moderator:TARKIN::LIN.com::FOLEY
Created:Thu Oct 31 1991
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6086
Total number of notes:31449

5632.0. "IP address location in Registry?" by CRONIC::LEMONS (And we thank you for your support.) Mon Feb 03 1997 09:30

    Hi
    
    Where is the IP address stored in the Registry?
    
    Thanks!
    tl
T.RTitleUserPersonal
Name
DateLines
5632.12954::FOLEYhttp://axel.zko.dec.comMon Feb 03 1997 10:5978

	Under the device..

	For example:

Key Name:         
SYSTEM\CurrentControlSet\Services\DC21X41\Parameters\Tcpip
Class Name:        GenericClass
Last Write Time:   1/29/97 - 4:38 PM
Value 0
  Name:            DefaultGateway
  Type:            REG_MULTI_SZ
  Data:            16.30.176.100
                   
 
Value 1
  Name:            EnableDHCP
  Type:            REG_DWORD
  Data:            0
 
Value 2
  Name:            IPAddress
  Type:            REG_MULTI_SZ
  Data:            16.30.176.38
                   
 
Value 3
  Name:            IPInterfaceContext
  Type:            REG_DWORD
  Data:            0x1
 
Value 4
  Name:            IPInterfaceContextMax
  Type:            REG_DWORD
  Data:            0x1
 
Value 5
  Name:            LLInterface
  Type:            REG_SZ
  Data:            
 
Value 6
  Name:            PPTPFiltering
  Type:            REG_DWORD
  Data:            0
 
Value 7
  Name:            RawIPAllowedProtocols
  Type:            REG_MULTI_SZ
  Data:            0
                   
 
Value 8
  Name:            SubnetMask
  Type:            REG_MULTI_SZ
  Data:            255.255.255.0
                   
 
Value 9
  Name:            TCPAllowedPorts
  Type:            REG_MULTI_SZ
  Data:            0
                   
 
Value 10
  Name:            UDPAllowedPorts
  Type:            REG_MULTI_SZ
  Data:            0
                   
 
Value 11
  Name:            UseZeroBroadcast
  Type:            REG_DWORD
  Data:            0
 
 

5632.28153::tecotoo.mro.dec.com::mayerDanny MayerMon Feb 03 1997 11:115
>        Under the device..
> 
	To be accurate, the Instantiation of the device.

		Danny
5632.3CRONIC::LEMONSAnd we thank you for your support.Mon Feb 03 1997 19:067
    Ugh.  This may be more ugly than I can handle.  If the IP address could
    be dangling off of an unlimited number of possible devices, how can I
    build a registry lookup command (in InstallShield SDK) that can handle
    this without coding each possible device?
    
    Thanks!
    tl
5632.4BIGUN::nessus.cao.dec.com::MayneWake up, time to dieMon Feb 03 1997 19:403
...and how do you handle more than one IP address per device?

PJDM
5632.58153::tecotoo.mro.dec.com::mayerDanny MayerTue Feb 04 1997 06:1116
>    Ugh.  This may be more ugly than I can handle.  If the IP address could
>    be dangling off of an unlimited number of possible devices, how can I
>    build a registry lookup command (in InstallShield SDK) that can handle
>    this without coding each possible device?
>    

	Actually I have InstallShield code that goes around and looks at the
  various IP addresses and DNS, etc.  I can provide that, but I'm not entirely
  sure that the SDK version allows you to do Registry lookups.

	P.S.  The code is a little messy since I developed it as I figured
  out where things were and how they interacted.    You have to understand
  the registry first.  It also currently only looks at one adapter.  It could
  be modified to look at more than one.

		Danny
5632.6PAMSRC::XHOST::SJZRocking the Messaging Desktop !Wed Feb 05 1997 18:557
    
    we read and write the registry in our installshield setup
    script.  i am not certain what version of the SDK we have.
    we downloaded it from the install shield site.  it is sup-
    posed to be an update of the one that comes with VC++.
    
    _sjz.