Kristijan Marin wrote:
Hi,
I have a project where components/programs run on different mashines ...
and data exchange and execution of some actions on server side is done with
help of webservice ....
Now the same code for accessing server side can be called from some
application installed inside local network( Office location) or outside
this network( Home location) .....
Now because in the first example I use webservice call inside intranet and
in the second example outside intranet, I was woundering if webservice
automatically recognizes intranet connection so it doesn't go out and back
in into the network ?
This is entirely outside the scope of a web service. It's actually a
routing issue. If your clients are part of the same subnet as the
server hosting the web service, the client will not leave your local
intranet. If the server hosting the web service is on a separate subnet
from your clients, it's possible --albeit *highly* unlikely because of
the complexity that would be involved-- based on how your routing is
configured.
If you're not familiar with your network topology, speak with your
network administrator. If you are the network administrator (and even
if you're not because of the wealth of information you can obtain), I'd
suggest reading some books on routing.
Hope that helps,
--
Sean