Callers IP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George D, Lake

    #1

    Callers IP

    Hi,
    I need to create a web service that returns to the caller his IP. I have
    done this in the past for callres taht are running ASP.NET but not from a
    winform (VB.NET) app. I have read in oter forms that this can not be done?
    Any ideas?


    Thanks!
    George.


  • Ajit

    #2
    RE: Callers IP

    George,

    Try this -

    [WebMethod]
    public string getIPString()
    {
    string ipAddress = Context.Request .UserHostAddres s;
    }

    Regards,
    Ajit

    "George D, Lake" wrote:
    [color=blue]
    > Hi,
    > I need to create a web service that returns to the caller his IP. I have
    > done this in the past for callres taht are running ASP.NET but not from a
    > winform (VB.NET) app. I have read in oter forms that this can not be done?
    > Any ideas?
    >
    >
    > Thanks!
    > George.
    >
    >
    >[/color]

    Comment

    • Ajit

      #3
      RE: Callers IP

      George,

      Try this -

      [WebMethod]
      public string getIPString()
      {
      string ipAddress = Context.Request .UserHostAddres s;
      }

      Regards,
      Ajit

      "George D, Lake" wrote:
      [color=blue]
      > Hi,
      > I need to create a web service that returns to the caller his IP. I have
      > done this in the past for callres taht are running ASP.NET but not from a
      > winform (VB.NET) app. I have read in oter forms that this can not be done?
      > Any ideas?
      >
      >
      > Thanks!
      > George.
      >
      >
      >[/color]

      Comment

      Working...