Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. can't make otbound connections

can't make otbound connections

Scheduled Pinned Locked Moved ASP.NET
csharpcomsysadminwindows-adminhosting
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mridang Agarwalla
    wrote on last edited by
    #1

    Hi guys, I'm developing a small site for someone who made the mistake of hosting with GoDaddy. I am unable to make any outbound connections for WebRequest and stuff from Godaddy. String strResult; WebResponse objResponse; WebRequest objRequest = System.Net.HttpWebRequest.Create("http://www.google.com"); objRequest.Proxy = new WebProxy("https://64.202.165.130:3128"); //objRequest.Proxy = new WebProxy("https://64.202.165.130:3128"); //objRequest.Proxy = new WebProxy("http://wc-v01.inet.mesa1.gdg:3128"); //objRequest.Proxy = new WebProxy("https://wc-v01.inet.mesa1.gdg:3128"); objResponse = objRequest.GetResponse(); // the using keyword will automatically dispose the object // once complete using (StreamReader sr = new StreamReader(objResponse.GetResponseStream())) { strResult = sr.ReadToEnd(); // Close and clean up the StreamReader sr.Close(); } Response.Write(strResult); I used that code to test f I could make outbound connections. On my IIS it worked fine but when I uploaded it gave "Could not connect kind of error". I did comment out all the Proxy code when I ran it on my IIS. GoDaddy has a Proxy server. I've tried all combinations to make it work but it doesn't. GoDaddy claims its a coding error. Is there a simpler code to test whether I ca n make outbound connections froma particular server or something.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups