Re: Can't get MAC Address when connected via VPN

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Just a guess, but depending on the VPN client you are using, it may create
it's own adapter & MAC address on the fly. Older Nortel clients do something
similar. In essence, the IP will not translate back to the NICs MAC address,
but back to the virtual adapters addressing layer. Also, some VPN clients
"lock out" all other network protocols and adapters to void creating a
multihomed exploitable workstation. Nortel also does this in some cases.
This might prohibit you from direct access via normal calls.

If you are looking for local MAC, you might want to enumerate the subkeys of

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards

then pull the GUID from the adapters. Compare the GUID to the subkeys of:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<GUID>

to get your IP Addressing. Use this addressing to poll for MAC.

Not sure if any of this helps, but it may help shed a little light on your
situation.

-Harry Bates
Lockheed-Martin

"Joseph Geretz" <jgeretz@xxxxxxxxxx> wrote in message
news:OO4tW$8OFHA.2700@xxxxxxxxxxxxxxxxxxxxxxx
> I'm using Randy Birch's GetMacAddress function to get the MAC address of
the
> database server when the client software starts up.
>
> http://vbnet.mvps.org/code/network/macaddressremote.htm
>
> The crux of the function is the SendARP function:
>
> Private Declare Function SendARP Lib "iphlpapi.dll" _
> (ByVal DestIP As Long, _
> ByVal SrcIP As Long, _
> pMacAddr As Long, _
> PhyAddrLen As Long) As Long
>
> This is working fine, except for remote office clients which connect to
the
> internal subnet via VPN. these clients are able to cross lookup IP address
> to the Host name and vice versa, but are unable to translate the IP
address
> to MAC address. Any ideas why SendARP would fail under this condition and
> are there any workarounds which you can suggest?
>
> Thanks immensely for any help which you can offer.
>
> Joe Geretz
>
>


.



Relevant Pages

  • RE: Mac to PC file sharing issues on SBS2003
    ... the server or PC clients anymore after moving everything out of the Microsoft ... If the resource fork is still open on the server for no reason they will get ... a username and password prompt on their Mac when they try to move the folder ...
    (microsoft.public.windows.server.sbs)
  • Re: Sodding Word
    ... being a bit of a bug festival. ... I'd have Word 2004 and Word 5.1a fight it out as the best Word for Mac ... documents I receive and have to supply to clients. ... what you think are the compatible Microsoft fonts really are. ...
    (uk.comp.sys.mac)
  • F.A O Eriq Neale
    ... (please see previous thread below re FTP from Mac clients) ... Then created a protocol rule called MAC, enabled, set action to allow, ...
    (microsoft.public.windows.server.sbs)
  • Re: RE-Started: Network Adpaters - PC-Card and USB.
    ... Another solution is changing MAC address under ... There are not so many adapters that allow you to change MAC address in ... although MAC-based identification is not ... adapters on the machine for this purpose. ...
    (microsoft.public.development.device.drivers)
  • Re: Mac OSX Clients in AD server environment - anomalies
    ... with a handfull of OSX Mac clients (lets say ... > * Issue occurring on current w2k AD file servers ... I had to setup access for 25 Mac OSx ... called the resource fork. ...
    (microsoft.public.win2000.active_directory)