Is there any way that I can get the real external IP of the visitor when proxy software's enabled on his...











up vote
-1
down vote

favorite












I am using this



HttpContext.Current.Request.UserHostAddress;


and it returns me the exact public ip of the user that's visiting my website but it doesn't work if Proxy software i.e. Zenmate, VPNTunnel etc is enabled on visitors' system. In that case, how to get PUBLIC/External/Original ip of the visitor, not the vpn's?










share|improve this question


















  • 2




    FYI VPN != Proxy. Proxy servers, depending on their configuration (transparent vs anonymous vs highly anonymous) will sometimes send the client IP in headers such as X-Forwarded-For. With a VPN, that becomes your network connection, so it's like you're browsing the Internet from the provider's IP address.
    – John
    20 hours ago








  • 2




    If someone is using a proxy server or VPN, that is their public, external IP address. What other IP address are you looking for?
    – John Wu
    20 hours ago












  • @JohnWu: A person sitting in US, using proxy is getting the IP address of Germany.... How I am supposed to get the address he's actually assigned in US?
    – azure boy
    20 hours ago










  • @JohnWu the original requestor of a call that did pass-through the proxy - so obviously any proxy on the request path should/will modify his originating IP address. I want the non-modified one,
    – azure boy
    20 hours ago






  • 1




    I'll say it again: Zenmate and VPNTunnel are not proxy servers. They are virtual private network providers, and that's an entirely different technology. Your current question is like asking how to fill up your Tesla car with petrol/gasoline. If I set up a VPN server on my router at home, and connect to it from another country, routing all of my traffic through it, it becomes like I am on my home network. The IP address displayed is my usual external IP, not the other country IP. In short: what you're asking is impossible. The best you can do is block VPN nodes that you're aware of.
    – John
    4 hours ago















up vote
-1
down vote

favorite












I am using this



HttpContext.Current.Request.UserHostAddress;


and it returns me the exact public ip of the user that's visiting my website but it doesn't work if Proxy software i.e. Zenmate, VPNTunnel etc is enabled on visitors' system. In that case, how to get PUBLIC/External/Original ip of the visitor, not the vpn's?










share|improve this question


















  • 2




    FYI VPN != Proxy. Proxy servers, depending on their configuration (transparent vs anonymous vs highly anonymous) will sometimes send the client IP in headers such as X-Forwarded-For. With a VPN, that becomes your network connection, so it's like you're browsing the Internet from the provider's IP address.
    – John
    20 hours ago








  • 2




    If someone is using a proxy server or VPN, that is their public, external IP address. What other IP address are you looking for?
    – John Wu
    20 hours ago












  • @JohnWu: A person sitting in US, using proxy is getting the IP address of Germany.... How I am supposed to get the address he's actually assigned in US?
    – azure boy
    20 hours ago










  • @JohnWu the original requestor of a call that did pass-through the proxy - so obviously any proxy on the request path should/will modify his originating IP address. I want the non-modified one,
    – azure boy
    20 hours ago






  • 1




    I'll say it again: Zenmate and VPNTunnel are not proxy servers. They are virtual private network providers, and that's an entirely different technology. Your current question is like asking how to fill up your Tesla car with petrol/gasoline. If I set up a VPN server on my router at home, and connect to it from another country, routing all of my traffic through it, it becomes like I am on my home network. The IP address displayed is my usual external IP, not the other country IP. In short: what you're asking is impossible. The best you can do is block VPN nodes that you're aware of.
    – John
    4 hours ago













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I am using this



HttpContext.Current.Request.UserHostAddress;


and it returns me the exact public ip of the user that's visiting my website but it doesn't work if Proxy software i.e. Zenmate, VPNTunnel etc is enabled on visitors' system. In that case, how to get PUBLIC/External/Original ip of the visitor, not the vpn's?










share|improve this question













I am using this



HttpContext.Current.Request.UserHostAddress;


and it returns me the exact public ip of the user that's visiting my website but it doesn't work if Proxy software i.e. Zenmate, VPNTunnel etc is enabled on visitors' system. In that case, how to get PUBLIC/External/Original ip of the visitor, not the vpn's?







c# asp.net c#-4.0 webforms httpcontext






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 20 hours ago









azure boy

185




185








  • 2




    FYI VPN != Proxy. Proxy servers, depending on their configuration (transparent vs anonymous vs highly anonymous) will sometimes send the client IP in headers such as X-Forwarded-For. With a VPN, that becomes your network connection, so it's like you're browsing the Internet from the provider's IP address.
    – John
    20 hours ago








  • 2




    If someone is using a proxy server or VPN, that is their public, external IP address. What other IP address are you looking for?
    – John Wu
    20 hours ago












  • @JohnWu: A person sitting in US, using proxy is getting the IP address of Germany.... How I am supposed to get the address he's actually assigned in US?
    – azure boy
    20 hours ago










  • @JohnWu the original requestor of a call that did pass-through the proxy - so obviously any proxy on the request path should/will modify his originating IP address. I want the non-modified one,
    – azure boy
    20 hours ago






  • 1




    I'll say it again: Zenmate and VPNTunnel are not proxy servers. They are virtual private network providers, and that's an entirely different technology. Your current question is like asking how to fill up your Tesla car with petrol/gasoline. If I set up a VPN server on my router at home, and connect to it from another country, routing all of my traffic through it, it becomes like I am on my home network. The IP address displayed is my usual external IP, not the other country IP. In short: what you're asking is impossible. The best you can do is block VPN nodes that you're aware of.
    – John
    4 hours ago














  • 2




    FYI VPN != Proxy. Proxy servers, depending on their configuration (transparent vs anonymous vs highly anonymous) will sometimes send the client IP in headers such as X-Forwarded-For. With a VPN, that becomes your network connection, so it's like you're browsing the Internet from the provider's IP address.
    – John
    20 hours ago








  • 2




    If someone is using a proxy server or VPN, that is their public, external IP address. What other IP address are you looking for?
    – John Wu
    20 hours ago












  • @JohnWu: A person sitting in US, using proxy is getting the IP address of Germany.... How I am supposed to get the address he's actually assigned in US?
    – azure boy
    20 hours ago










  • @JohnWu the original requestor of a call that did pass-through the proxy - so obviously any proxy on the request path should/will modify his originating IP address. I want the non-modified one,
    – azure boy
    20 hours ago






  • 1




    I'll say it again: Zenmate and VPNTunnel are not proxy servers. They are virtual private network providers, and that's an entirely different technology. Your current question is like asking how to fill up your Tesla car with petrol/gasoline. If I set up a VPN server on my router at home, and connect to it from another country, routing all of my traffic through it, it becomes like I am on my home network. The IP address displayed is my usual external IP, not the other country IP. In short: what you're asking is impossible. The best you can do is block VPN nodes that you're aware of.
    – John
    4 hours ago








2




2




FYI VPN != Proxy. Proxy servers, depending on their configuration (transparent vs anonymous vs highly anonymous) will sometimes send the client IP in headers such as X-Forwarded-For. With a VPN, that becomes your network connection, so it's like you're browsing the Internet from the provider's IP address.
– John
20 hours ago






FYI VPN != Proxy. Proxy servers, depending on their configuration (transparent vs anonymous vs highly anonymous) will sometimes send the client IP in headers such as X-Forwarded-For. With a VPN, that becomes your network connection, so it's like you're browsing the Internet from the provider's IP address.
– John
20 hours ago






2




2




If someone is using a proxy server or VPN, that is their public, external IP address. What other IP address are you looking for?
– John Wu
20 hours ago






If someone is using a proxy server or VPN, that is their public, external IP address. What other IP address are you looking for?
– John Wu
20 hours ago














@JohnWu: A person sitting in US, using proxy is getting the IP address of Germany.... How I am supposed to get the address he's actually assigned in US?
– azure boy
20 hours ago




@JohnWu: A person sitting in US, using proxy is getting the IP address of Germany.... How I am supposed to get the address he's actually assigned in US?
– azure boy
20 hours ago












@JohnWu the original requestor of a call that did pass-through the proxy - so obviously any proxy on the request path should/will modify his originating IP address. I want the non-modified one,
– azure boy
20 hours ago




@JohnWu the original requestor of a call that did pass-through the proxy - so obviously any proxy on the request path should/will modify his originating IP address. I want the non-modified one,
– azure boy
20 hours ago




1




1




I'll say it again: Zenmate and VPNTunnel are not proxy servers. They are virtual private network providers, and that's an entirely different technology. Your current question is like asking how to fill up your Tesla car with petrol/gasoline. If I set up a VPN server on my router at home, and connect to it from another country, routing all of my traffic through it, it becomes like I am on my home network. The IP address displayed is my usual external IP, not the other country IP. In short: what you're asking is impossible. The best you can do is block VPN nodes that you're aware of.
– John
4 hours ago




I'll say it again: Zenmate and VPNTunnel are not proxy servers. They are virtual private network providers, and that's an entirely different technology. Your current question is like asking how to fill up your Tesla car with petrol/gasoline. If I set up a VPN server on my router at home, and connect to it from another country, routing all of my traffic through it, it becomes like I am on my home network. The IP address displayed is my usual external IP, not the other country IP. In short: what you're asking is impossible. The best you can do is block VPN nodes that you're aware of.
– John
4 hours ago

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53371390%2fis-there-any-way-that-i-can-get-the-real-external-ip-of-the-visitor-when-proxy-s%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53371390%2fis-there-any-way-that-i-can-get-the-real-external-ip-of-the-visitor-when-proxy-s%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen