Click here to Skip to main content
11,584,208 members (52,608 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 OriginalGriff 390
1 Sergey Alexandrovich Kryukov 334
2 Dave Kreskowiak 240
3 Richard Deeming 220
4 virusstorm 194
0 OriginalGriff 1,663
1 Sergey Alexandrovich Kryukov 1,229
2 Abhinav S 701
3 Dave Kreskowiak 667
4 Suvendu Shekhar Giri 568

Advertise | Privacy | Mobile
Web04 | 2.8.150603.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