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

Retrieving of IP-Address within a WebService - How?

P: n/a
cha
Hi there,

how is it possible to retrieve the IP-Address of a user that requests
my Web-Service written in VB.NET (asmx)?

Any way to do this?

Thanks for any help in advance,

Christian Hartmann

P.S.: Thanks for the fish.... :-)

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
<WebMethod()> Public Function GetIP() As String
Return Context.Request.ServerVariables("Local_Addr")
End Function

"ch*@christian-hartmann.de" wrote:
Hi there,

how is it possible to retrieve the IP-Address of a user that requests
my Web-Service written in VB.NET (asmx)?

Any way to do this?

Thanks for any help in advance,

Christian Hartmann

P.S.: Thanks for the fish.... :-)

Nov 21 '05 #2

P: n/a
I think it would be REMOTE_ADDR for a remote user

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Rulin Hong" <Ru*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
<WebMethod()> Public Function GetIP() As String
Return Context.Request.ServerVariables("Local_Addr")
End Function

"ch*@christian-hartmann.de" wrote:
Hi there,

how is it possible to retrieve the IP-Address of a user that requests
my Web-Service written in VB.NET (asmx)?

Any way to do this?

Thanks for any help in advance,

Christian Hartmann

P.S.: Thanks for the fish.... :-)

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.