473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Retrieving of IP-Address within a WebService - How?

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
2 1371
<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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alfredo Agosti | last post by:
Hi all, I wonder if it's possible to show in a windows all the Session ID of the people connected to my site along with some other information (IP etc). I didn't find how to retrieve all the...
1
by: kacper | last post by:
Hello, Recently I had to connect my application (Delphi, dbexpress) to remote db2 server connected via WAN. (3Mb/s). If I'm not working with clobs - everything works just great - I have an...
1
by: C | last post by:
Hi, I am in the process of developing an ASP.Net app. Part of this app needs to retieve data from a VMS System. Does anyone have any articles on this or know of any good sites detailing...
13
by: RHPT | last post by:
I am wanting to capture the XML posted by an InfoPath form with .NET, but I cannot figure out how to capture the XML stream sent back by the InfoPath form. With Classic ASP, I could just create an...
2
by: Sven Wynsberghe | last post by:
Like the topic states, is there any way I can get the ip-adress of my computer with a vb.net application? thanks for the help :)
0
by: Andy | last post by:
Hi All. I'm working for a company that has set out a guideline for retrieving data from a database. Nobody can explain to me the reason for the following. When retrieving a set of records...
10
by: Girish | last post by:
Hi Everyone, I am passing a form to a php script for further processing. I am able to retrieve the last value set for that given form variable using $variable=$_REQUEST;
2
by: hpber | last post by:
Hello, is there a way to retrieve the name of the user who is logged on on a foreign Win Xp machine by giving the ip adress with c/c++ ? A list of necessary function or source code would be...
4
by: shirleylouis | last post by:
Hi Ppl, Could anyone help me out with retrieving URL from Clipboard using C#??
1
by: Yashgt | last post by:
Hi, Just as we use the System.Net.Mail.SmtpClient class for programmatically sending emails through an SMTP server, what can we use for receiving emails from a POP3 server. We want to mimic a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.