Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
i have a website on my server and my company user Proxy server when i try to get IP address from client machine its giving me Proxy IP address not client machine IP address

i want to put Proxy server credential in my application to bypass the proxy and get the client machine IP

please help me out how can i do this process
Posted

1 solution

Inside your web.config...
XML
<system.net>
    <defaultProxy enabled="true">
      <proxy usesystemdefault="False" bypassonlocal="True" autoDetect="False" proxyaddress="http://theproxyIP:3128"/>
    </defaultProxy>
  </system.net>

Hope it helps.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900