get IP address of the "consumer" of web service

Posted on 2006-04-27
Last Modified: 2012-06-27

Is there a way to get the IP address of a machine consuming a web service?
Ideally, I would like to check an IP address of an incoming connection and then check to see that it is in a table before allowing the client access to the web service. (perhaps an initial service would determine the IP, verify it, then turn on the main web service)

Question by:simplyamazing
    LVL 96

    Accepted Solution

    Let's see:

    1) From an ASP.NET web page, you could use:


    2) Try the fully-qualified name:



    Author Comment

    for some silly reason, I was making this way more complicated than it had to be, but a web service really just uses HTTP for like any typical web page (I should really get more sleep, or more brains :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now