Mohammad Dayyan
Mohammad Dayyan

Reputation: 22448

Recover the URL that is used my WebService?

I'm creating a webservice.
I wanna recover the URL that is used my webservice.

e.g:
Someone from www.sth.com invoke my webservice's methods. Now I wanna recover www.sth.com from my webservice!

Is it possible? if so, how?

Upvotes: 0

Views: 93

Answers (1)

Nissim
Nissim

Reputation: 6563

try using:

string clientAddress = this.Context.Request.UserHostAddress;

Upvotes: 2

Related Questions