HttpExtractSrcAddress
Returns the source address of the request in the specified format.
#include <httpexp.h>
int HttpExtractSrcAddress (
HINTERNET hndl,
int *pSrcIPAddr,
int *pSrcIPPort,
char *pzSrcIPAddrBuf,
char *pzSrcPortBuf);
If successful, returns 0. Otherwise, returns a nonzero error code.
You only need to provide pointers for the values you need. The other parameters can be set to NULL.