Webservice - how to detect consumer is in internal network?

Webservice - how to detect consumer is in internal network?

  
eSpace1 is the web service producer
eSpace2 consumes eSpace1 via SOAP web service.

Is it possible for an "action"/logic in eSpace1 to detect that the consumer is on the internal network?