Click here to Skip to main content
11,798,866 members (41,371 online)
Rate this: bad
Please Sign up or sign in to vote.

I have created a web service which will be installed in a server in one location. There are many client systems in different location who is using it as a web reference.
How to find from whom( I mean , I need to get the refferer URL ) a request is coming to my web service..?

Request.Urireferer is not working.. I am using visual frame work V2

any help will be appriciated.

Posted 4-Mar-13 20:32pm
Edited 4-Mar-13 20:50pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Dim ipAddress As String = HttpContext.Current.Request.ServerVariables("HTTP_X_FORWARDED_FOR")
        If ipAddress Is Nothing Or ipAddress = "" Then
            ipAddress = HttpContext.Current.Request.ServerVariables("REMOTE_ADDR")
        End If

working for me...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I haven't try the following solution from my end but u can definitely try this

Solution :

Dim webServicesClientProtocol1 As WebServicesClientProtocol

Dim returnValue As String
returnValue = webServicesClientProtocol1.Url

Dim sampleValue As String
webServicesClientProtocol1.Url = sampleValue

Please let me know if you not get succeeded in the above solution
Naveen_143 at 7-Mar-13 2:10am
Thanks for ur response ..I posted my code.. I will try this one also..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CPallini 465
1 OriginalGriff 378
2 Maciej Los 305
3 Richard MacCutchan 281
4 phil.o 244
0 OriginalGriff 2,270
1 Maciej Los 1,810
2 KrunalRohit 1,496
3 CPallini 1,425
4 Richard MacCutchan 1,109

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 7 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100