|
|||
|
Hi All,
This is my first post in this forum. I am not sure if this is the right thread for my question. Please direct me the correct post if it's needed. Q: I have an ASP page (test.asp) that reads Request.ServerVariables("REMOTE_ADDR") and passes it down to c++ dll which then reports in log. When my service is running on XP/2003, it returns following results when above 4 sites are hit:
But if it's running on Vista/Server2008 this function returns different addresses as follows:
Is there a way to convert these IPv6 addresses into Ipv4 format as shown in first case? Is there any pure (no managed code) CPP function that can convert/extract IPv4 address from the IPv6 address. Does anyone happen to know the solution or can guide/direct me towards the solutions? I am currently trying following in my cpp dll where sClientIP is being passed down by test.asp: get_Init(LPSTR sClientIP) { struct sockaddr_storage ss;} But this returns me following:
Any help is greatly appreciated!! |
|
|||
|
The Internet is best described as a "network of networks," and every device which is connected to the Internet is uniquely identified by its Internet Protocol (IP) address
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|