Results 1 to 9 of 9

Thread: App cant connect to Internet when running on a network - Is this a proxy or Firewall?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Location
    Uk
    Posts
    157

    Question App cant connect to Internet when running on a network - Is this a proxy or Firewall?

    Hi, one of my clients is running my exe app from a network PC and its throwing an error showing no internet connection

    Could a proxy server be blocking it or is this more likely the companies firewall?

    When my software starts it checks if there is an internet connection using the following:

    Code:
     Public Function IsConnectionAvailable(ByVal site As String) As Boolean
            If site = "Y" Then
                site = "http://www.mysite.com"
            End If
            Dim objUrl As New System.Uri(site)
            Dim objWebReq As System.Net.WebRequest
            objWebReq = System.Net.WebRequest.Create(objUrl)
            Dim objResp As System.Net.WebResponse
    
            Try
                objResp = objWebReq.GetResponse
                objResp.Close()
                objWebReq = Nothing
                Return True
            Catch ex As Exception
                objWebReq = Nothing
                Return False
            End Try
        End Function

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: App cant connect to Internet when running on a network - Is this a proxy or Firew

    Well, it's not a proxy! It could well be the firewall in which case you'll need to get the network administrator involved or it could be some entirely unrelated security measures in which case you'll need to get the network administrator involved. In other words its very unlikely to be anything over which you have any control so I'd get the .... well, you can fill in the rest.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Location
    Uk
    Posts
    157

    Re: App cant connect to Internet when running on a network - Is this a proxy or Firew

    thanks for the info - was thinking i'd have to modify the webrequest for proxy use

  4. #4
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: App cant connect to Internet when running on a network - Is this a proxy or Firew

    No that would only be the case if you wanted to connect exclusively through a proxy of your choice. At this level an internet connection is an internet connection is an internet connection. You couldn't possibly take account of every possible proxy that every possible user might happen to use.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: App cant connect to Internet when running on a network - Is this a proxy or Firew

    it's something to discuss with the network admin... if a single person is having this issue, and no one else on the same network is... then it could be something with the client (host file springs to mind) ... or if everyone on the same network has the problem, then it could be the firewall... it's possible, depending on the environment that the network admin has to whitelist sites before anyone can visit them (yes, such draconian measures do exist) if the site you are trying to access isn't on the approved whitelist, any requests for it are not going to go anywhere.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: App cant connect to Internet when running on a network - Is this a proxy or Firew

    Are all of the devices on one network?
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Location
    Uk
    Posts
    157

    Re: App cant connect to Internet when running on a network - Is this a proxy or Firew

    This is a new customer - first PC they have tried to run the software on

    They've asked for the website IP the software connects to so they can add it to their firewall

    I'm now awaiting their reply

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Location
    Uk
    Posts
    157

    Re: App cant connect to Internet when running on a network - Is this a proxy or Firew

    I had the client change the LAN settings to disable the proxy settings and set it to Automatically Detect Settings

    The app now trys to connect but shows the following:



    I'm still wondering if i should change my webrequest to detect proxy settings or does this confirm it is the firewall?

  9. #9
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: App cant connect to Internet when running on a network - Is this a proxy or Firew

    Neither. This is Windows telling you that it would prefer you to use a secure connection if you're sending passwords or other sensitive details. It's a warning rather than a forbiddance (is that a word, doesn't look right, oh well, you know what I mean).
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

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