Test IP address retrieval via default or custom header