[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

John Bowman

8/25/2003 7:20:00 PM

I need to get the IPAddress of the user who is using my
service does any on have any ideas on how this could be
accomplish with a webservice?
2 Answers

Jim Coles

8/25/2003 7:28:00 PM

0


>-----Original Message-----
>I need to get the IPAddress of the user who is using my
>service does any on have any ideas on how this could be
>accomplish with a webservice?
>.
>

I figured it out. It was a dumb question to start with.
this.Context.Request.UserHostAddress

GraemeAnderson(rimfire

8/29/2003 8:45:00 AM

0

This works for me on a web service, give it a try, on client and then you can return the IP to the WS?

regards

Graeme

Imports System.Net
Private Function ReturnServerIP() As String
Dim sHostName As String
Dim i As Integer
sHostName = Dns.GetHostName()
Dim ipE As IPHostEntry = Dns.GetHostByName(sHostName)
Dim IpA() As IPAddress = ipE.AddressList
ReturnServerIP = IpA(0).ToString
End Function

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysof...
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...