Web Agent IP address is resolved as 0.0.0.0

Document ID : KB000051191
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

In the Policy Server trace, we can see the following message:

[06/07/2010][14:57:03][14664][149][][CSmHttpPlugin::ResolveClientIp][Resolved Client IP address '0.0.0.0'.]

Why is the IP address 0.0.0.0? Is there anything wrong?

Solution:

The IP address 0.0.0.0 is a special IP address which always refers to this Host . That is the IP addresses of the machine hosting the webagent/webserver.

In simple words, this is a special IP which denotes that the request came from the same machine hosting the webserver and request was an internal request made by webserver only and not by external client browser.

The requests having client IP as 0.0.0.0 are not typed by client/browser explicitly. (I. E.) [Resolved URL: '/'.]

Example:

[Resolved URL: '/WEB-INF/classes/'.]
[Resolved URL: '/WEB-INF/lib/'.]
[Resolved URL: '/WEB-INF/web.xml'.]

The requests to these URL s were made internally by webserver itself and not by external client/browser. And this is the reason why webagent logged the client IP as 0.0.0.0 which is a special IP:

[06/07/2010][14:56:47][14664][1][][CSmHttpPlugin::ResolveClientIp]
[Resolved Client IP address '0.0.0.0'.]
[06/07/2010][14:56:47][14664][1][0000000000000000000009f9c6144-3948-4c0cfa9f-0001-73e31f6f]
[CSmHttpPlugin::ProcessResource][Resolved URL: '/WEB-INF/classes/'.]

And for the requests that were actually made by client/browser to the webserver like:

[Resolved URL: '/public/'.]
[Resolved URL: '/public/index.jsp'.]

You can see that these requests have actual values of Client IP addresses logged in webagent trace logs:

[06/07/2010][14:58:04][14664][149][][CSmHttpPlugin::ResolveClientIp]
[Resolved Client IP address '167.23.245.11'.]
[06/07/2010][14:58:04][14664][149][0000000000000000000009f9c6144-3948-4c0cfaec-0095-77a671d4]
[CSmHttpPlugin::ProcessResource][Resolved URL: '/public/index.jsp'.]

Thus, there is nothing wrong with this and it is working as expected.