How to get client IP in webservice?

Discussion in 'ASP .Net Web Services' started by Peter J. Hunter, Jul 16, 2003.

  1. I'm sure this is simple, I just can't figure it out.

    I am calling a webservice (written in .net vb) from a Visual Foxpro 7.0
    client. I need to have the webservice obtain the ip address of the calling
    client in order to setup a socket connection back to the same client.

    How can I do this (get the ip address, that is)?
    Thanks.
     
    Peter J. Hunter, Jul 16, 2003
    #1
    1. Advertising

  2. Hi Peter!

    Try Context.Request.ServerVariables["REMOTE_ADDR"].

    It returns a string representation of the client ip address.

    /Emil

    "Peter J. Hunter" <> wrote in message
    news:...
    > I'm sure this is simple, I just can't figure it out.
    >
    > I am calling a webservice (written in .net vb) from a Visual Foxpro 7.0
    > client. I need to have the webservice obtain the ip address of the calling
    > client in order to setup a socket connection back to the same client.
    >
    > How can I do this (get the ip address, that is)?
    > Thanks.
    >
    >
     
    Emil Kvarnhammar, Jul 16, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. batista
    Replies:
    1
    Views:
    965
    Laurent Bugnion
    Jan 26, 2006
  2. batista
    Replies:
    0
    Views:
    585
    batista
    Jan 26, 2006
  3. Mr. x
    Replies:
    2
    Views:
    742
    Andrew
    Oct 10, 2003
  4. Cyril
    Replies:
    2
    Views:
    4,558
    Cyril
    Jun 1, 2006
  5. Mr. x

    use another webservice in a webservice

    Mr. x, Sep 26, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    158
    Mr. x
    Sep 26, 2003
Loading...

Share This Page