Reputation: 4551
Intending to keep track of who is sending request to my Rest service in Mule (3.3.0), I did following:
<flow name="restService">
<http:inbound-endpoint name="endpoint" address="${service.address}"/>
<logger message="In restService flow, request received from #[header:INBOUND:MULE_REMOTE_CLIENT_ADDRESS]" level="INFO" />
.
.
.
</flow>
When I sent a request to this service running on server, I see this in logs:
In restService flow, request received from /172.23.2.249:54615
and when external vendor sent request, I see this:
In restService flow, request received from /172.23.2.249:54604
Why are the IPs same just with the different of port number.
Upvotes: 0
Views: 2159
Reputation: 33413
This is the remote port you are seeing, ie the port opened on the remote host to receive responses to requests it's sending to Mule.
Read What's in an HTTP request? for more information.
Upvotes: 1