VB2005 Web Service Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Al Reid

    VB2005 Web Service Question

    Is it possible to get either the IP Address or station name of the PC that has called a web method? If so, could you please point
    me in the right direction.

    --
    Al Reid



  • rowe_newsgroups

    #2
    Re: VB2005 Web Service Question

    On Oct 22, 11:25 am, "Al Reid" <arei...@reidDA SHhome.comwrote :
    Is it possible to get either the IP Address or station name of the PC that has called a web method?  If so, could you please point
    me in the right direction.
    >
    --
    Al Reid
    Off hand I believe this will give you the requester's IP address:

    HttpContext.Cur rent.Request.Se rverVariables(" REMOTE_ADDR")

    Thanks,

    Seth Rowe [MVP]

    Comment

    • Al Reid

      #3
      Re: VB2005 Web Service Question

      >"rowe_newsgrou ps" <rowe_email@yah oo.comwrote in message news:7f6f7496-c28d-42e0-9dd3-f76b28002879@k1 6g2000hsf.googl egroups.com...
      >On Oct 22, 11:25 am, "Al Reid" <arei...@reidDA SHhome.comwrote :
      >Is it possible to get either the IP Address or station name of the PC that has called a web method? If so, could you please point
      >me in the right direction.
      >>
      >--
      >Al Reid
      >
      >Off hand I believe this will give you the requester's IP address:
      >
      >HttpContext.Cu rrent.Request.S erverVariables( "REMOTE_ADD R")
      >
      >Thanks,
      >
      >Seth Rowe [MVP]
      >http://sethrowe.blogspot.com/
      Thanks, Seth. I also found that

      Me.Context.Requ est.UserHostAdd ress



      seems to work within my local network. I sent a link to our partner on the other side of the T1 line to test if the correct IP
      address arrives after passing through the routers and firewalls.



      --

      Al Reid


      Comment

      Working...