Problem programmatically accessing NetAddresses property method for a computer

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi all,

If this is the wrong NG to post this, excuse me - it's my first time doing
this Active Directory stuff.

Now my issue:
I have a VB6 application that is trying to retrieve the Network addresses
property method for a specific computer. Using the Active Directory type
library object doesn't help since it seems to only suppoprt a few property
methods (client=Win2000 Pro, server=Win2000 Server).

Could someone please help me retrieve the NetAddress for a specific computer
using vb6?

It's quite urgent and I've already spent yesterday attempting to solve this
issue.

Thanks in advance

Regards
John.
 
Hi,

During my research, I found a method of finding the IP address of the
system. If you are trying to find the IP address of the system using Visual
Basic 6, please find the method using Winsock.

'Task: Different Ways of finding your IP address using winsock

'Declarations
'No Declarations

'Code:
'Just Put a winsock control on your program

'Using Message Box
msgbox ("Ip Address " & winsock1.localip)

'Using A Text Box
text1.text = winsock1.localip

Also you can get more details about using the Winsock control from the link
below:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/htm
l/vbconusingwinsockcontrol.asp

If you are trying to find the network adapter address using Visual Basic,
please find the related article:

HOWTO: Get Network Adapter Address from Visual Basic
http://support.microsoft.com/default.aspx?scid=kb;[LN];175472

Hope it is of help to you,

Thank you,

Rashmi

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "John" <[email protected]>
| Subject: Problem programmatically accessing NetAddresses property method
for a computer
| Date: Tue, 15 Jun 2004 10:23:47 +0200
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.win2000.active_directory
| NNTP-Posting-Host: 196.36.112.50
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
..phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.win2000.active_directory:82182
| X-Tomcat-NG: microsoft.public.win2000.active_directory
|
| Hi all,
|
| If this is the wrong NG to post this, excuse me - it's my first time doing
| this Active Directory stuff.
|
| Now my issue:
| I have a VB6 application that is trying to retrieve the Network addresses
| property method for a specific computer. Using the Active Directory type
| library object doesn't help since it seems to only suppoprt a few property
| methods (client=Win2000 Pro, server=Win2000 Server).
|
| Could someone please help me retrieve the NetAddress for a specific
computer
| using vb6?
|
| It's quite urgent and I've already spent yesterday attempting to solve
this
| issue.
|
| Thanks in advance
|
| Regards
| John.
|
|
|
 
Back
Top