How to get client IP in webservice?

P

Peter J. Hunter

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.
 
E

Emil Kvarnhammar

Hi Peter!

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

It returns a string representation of the client ip address.

/Emil
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top