By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,016 Members | 2,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,016 IT Pros & Developers. It's quick & easy.

Web Service - get remote machine/network parameters

P: n/a
I know that writing ASPX app we easily can get all required information
about remote machine and network right from the user's browser using this
request:

NameValueCollection coll = Request.ServerVariables;

But what if we write a Web Service? What can we do in this case? How can we
get the remote machine IP and the HostName for example? Do we have any way
that can be used from the Web Service for that? I know that I probably can
get the same info at the remote machine and send it to the Web Service for
logging, but actually it's always easy, because some of the clients are
working from their LANs and the real IP exposed by their Internet Providers
is hard to be received.

The question - how can we get a reliable information about remote network,
user, machine, etc?

Just D.


Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
What if you try:

HttpContext.Current.Request.ServerVariables.ToStri ng();

Does that work?

Kind regards,
Nikander & Margriet Bruggeman

"Just D." wrote:
I know that writing ASPX app we easily can get all required information
about remote machine and network right from the user's browser using this
request:

NameValueCollection coll = Request.ServerVariables;

But what if we write a Web Service? What can we do in this case? How can we
get the remote machine IP and the HostName for example? Do we have any way
that can be used from the Web Service for that? I know that I probably can
get the same info at the remote machine and send it to the Web Service for
logging, but actually it's always easy, because some of the clients are
working from their LANs and the real IP exposed by their Internet Providers
is hard to be received.

The question - how can we get a reliable information about remote network,
user, machine, etc?

Just D.


Nov 19 '05 #2

P: n/a
Raj
yeah it will work definately....

From http://www.google.co.in/search?hl=en&q="HttpContext.Current.Request.Server Variables().tostring"&btnG=Search&meta=

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
May 19 '07 #3

P: n/a
Raj
yeah it will work definately....

From http://www.google.co.in/search?hl=en&q="HttpContext.Current.Request.Server Variables().tostring"&btnG=Search&meta=

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
May 19 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.