- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Windows Server 2003
- >
- Problem with Windows system call: GetAdaptersAddre...
Windows Server 2003
1758610
Members
2183
Online
108873
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 08:39 AM
11-19-2008 08:39 AM
Problem with Windows system call: GetAdaptersAddresses
Hi,
I am using the Windows system call "GetAdaptersAddresses" to retrieve IPv4 & IPv6 addresses assigned to various interfaces on my PC having Windows 2003.
Its bit strange that it returns the addresses in a wrong manner for manually added global addresses. Assume if there are three different addresses assigned to an interface, when I try to retrive using the above API, it returns three addresses but just repeats the first one three times. For better clarity here I am explaining with actuals.
I have configured the following IP Addresses on my system(Windows 2003 Server):
10.64.70.191
2001:db8:c18:1:214:38ff:febe:ecad
2001:db8:c18:1:214:38ff:febe:ecac
2001:db8:c18:1:214:38ff:febe:ecab
fe80::214:38ff:febe:ecab
From the above IPv6 addresses I have added 2001:db8:c18:1:214:38ff:febe:ecad & 2001:db8:c18:1:214:38ff:febe:ecac manually using netsh command.
Now the problem is the Windows system call "GetAdaptersAddresses" is returning the addresses as below:
10.64.70.191
2001:db8:c18:1:214:38ff:febe:ecad
2001:db8:c18:1:214:38ff:febe:ecad
2001:db8:c18:1:214:38ff:febe:ecad
fe80::214:38ff:febe:ecab
Incase of global address it is just repeating the first one three times.
I am not sure what going wrong and is this a known issue. It would be of great help if anybody can provide some info on this.
Thanks&Regards
VijayK
I am using the Windows system call "GetAdaptersAddresses" to retrieve IPv4 & IPv6 addresses assigned to various interfaces on my PC having Windows 2003.
Its bit strange that it returns the addresses in a wrong manner for manually added global addresses. Assume if there are three different addresses assigned to an interface, when I try to retrive using the above API, it returns three addresses but just repeats the first one three times. For better clarity here I am explaining with actuals.
I have configured the following IP Addresses on my system(Windows 2003 Server):
10.64.70.191
2001:db8:c18:1:214:38ff:febe:ecad
2001:db8:c18:1:214:38ff:febe:ecac
2001:db8:c18:1:214:38ff:febe:ecab
fe80::214:38ff:febe:ecab
From the above IPv6 addresses I have added 2001:db8:c18:1:214:38ff:febe:ecad & 2001:db8:c18:1:214:38ff:febe:ecac manually using netsh command.
Now the problem is the Windows system call "GetAdaptersAddresses" is returning the addresses as below:
10.64.70.191
2001:db8:c18:1:214:38ff:febe:ecad
2001:db8:c18:1:214:38ff:febe:ecad
2001:db8:c18:1:214:38ff:febe:ecad
fe80::214:38ff:febe:ecab
Incase of global address it is just repeating the first one three times.
I am not sure what going wrong and is this a known issue. It would be of great help if anybody can provide some info on this.
Thanks&Regards
VijayK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP