473,396 Members | 1,898 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,396 software developers and data experts.

client IP address in a web service

Hi

Is there a way to get the IP address of the client who is using a web
service (inside the web service?)

Regards
Nov 15 '05 #1
2 23884
Tim,

Yous hould be able to get this using the UserHostAddress property on the
HttpRequest class. You can get this in a web service using the following:

// Get the context.
string pstrClientAddress = HttpContext.Current.Request.UserHostAddress;

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"tim djossou" <ti*@djossou.co.uk> wrote in message
news:O3**************@TK2MSFTNGP09.phx.gbl...
Hi

Is there a way to get the IP address of the client who is using a web
service (inside the web service?)

Regards

Nov 15 '05 #2
Thanks Nicholas

Tim
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Scott | last post by:
I think I have confused myself with reading all the articles on XML so I am hoping someone can point me in the direction for each piece of the project I am trying to develop. 1st Step - I need...
0
by: nimo | last post by:
Hi ! I have implemented a small test client that uses some of our web services. In addition to this, there are a few interfaces defined in the specification we use for asynchronous callbacks to...
1
by: Mike | last post by:
I am calling a web service that a client has set up for me to call. I am using Visual Studio 2003 with C# to call the web service. They are telling me on that on their side that the xml I send...
3
by: mamin | last post by:
Hi, I'm trying to write windows service that sending files from server to client. This service will work on serwer side.How windows service on server side can get client address? Is it possible to...
8
by: Duffcase | last post by:
Hi. I'm having some problems consuming a webservice. The server keeps complaining about the wrong element beeing sent.. I have this method that takes two strings String_1 and String_2 The...
0
by: brettburbidge | last post by:
I building a windows application that when opened uses IIS to authenticate the user against a custom database. When the application starts it contacts the Web Service to login. Right now I am...
2
by: geckosphere | last post by:
I want to be able to debug through the whole process from a button click on the client through all of the web methods and data access methods. It seems that when I put a break point on the button...
1
by: Jan Danielsson | last post by:
Hello all, I writing an application based on the SimpleXMLRPCServer class. I would like to know the IP address of the client performing the RPC. Is that possible, without having to abandon the...
0
by: Jeff Jarrell | last post by:
My WCF client is connecting to a Java WSIT (Sun) web service. When I generate a proxy on the .net side, I get Warning: The optional WSDL extension element 'UsingAddressing' from namespace...
0
by: M R | last post by:
I wrote a WCF service that currently runs in a Console host with the config whose XML is shown below. I have tested the service and it works, i.e. it receives the requests and provides the reply, ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.