Results 1 to 6 of 6

Thread: Proxy server

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Location
    Devon - UK
    Posts
    214

    Proxy server

    I have a windows app that can access a web site using System.Net.WebClient

    This works fine but I have have a user that has a proxy server. My networking knowledge is poor and I don't understand what I have to do to get thought the proxy server to the web.

    Is there anyone that can explain it or point me to some documentation.

    regards

    Barry

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Proxy server

    I believe your user would have to allow you through his proxy so I'm thinking this is something that would need to be done on his end.

    Have you talked to his networking people?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Location
    Devon - UK
    Posts
    214

    Re: Proxy server

    Hack

    Thanks for the reply.

    The User is telling me that his Uni blocks direct http: requests and that he has to go through a proxy server. He has set Firefox - tools - options -advanced - settings and checked Manual Proxy Configuration, then entered the proxy server and port. Then he can access the web.

    Best regards

    barry

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Proxy server

    Try setting the Proxy property.

    vb Code:
    1. Using wClient As New Net.WebClient
    2.             wClient.Proxy = New Net.WebProxy("addressToProxy")
    3.             'rest of the code here.
    4.         End Using
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Location
    Devon - UK
    Posts
    214

    Re: Proxy server

    OK - Thanks for that. Do I have to specify a port setting as well?

  6. #6
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Proxy server

    The WebProxy constructor has an overload that lets you specify the portnumber:
    vb Code:
    1. wClient.Proxy = New Net.WebProxy("address", PortNumber)
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width