Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Ping works but not able to browse

Ping works but not able to browse

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 4 Posters 1.4k 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.
  • V Offline
    V Offline
    Vinoth
    wrote on last edited by
    #1

    I have connected my embedded device to router using Ethernet cable. Ping to "www.google.com" and "www.youtube.com" works fine. But, I am not able to browse the webpage using "fancybrowser" example. Qt version is 5.3.1. If I connect the Ethernet cable to my embedded device directly, everything works fine. After connecting to the router, I noticed that /etc/resolv.conf contains "nameserver 192.168.1.1". But I do not have any clue, why browser is not able to load.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Explanation confused me. What do you mean Ethernet cable directly connected ? Directly from router to device ? Otherwise how r u connecting device to network ? Check any proxy in your network ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      V 1 Reply Last reply
      3
      • nestoracN Offline
        nestoracN Offline
        nestorac
        wrote on last edited by
        #3

        I am also confused. Do you plug the ethernet cable from the device to the router? Then, what is the other option?

        1 Reply Last reply
        0
        • dheerendraD dheerendra

          Explanation confused me. What do you mean Ethernet cable directly connected ? Directly from router to device ? Otherwise how r u connecting device to network ? Check any proxy in your network ?

          V Offline
          V Offline
          Vinoth
          wrote on last edited by
          #4

          @dheerendra Hi, I have connected Ethernet cable from router LAN port to my embedded device. When I have connected this way, I could browse only http sites like http://www.w3schools.com and sites using https fail to load.

          When I connect the cable to my device directly without router in between, I am able to browse both http and https sites without any problem.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Vinoth
            wrote on last edited by
            #5

            I tried following the suggestions from the thread

            http://www.qtcentre.org/threads/14398-Use-of-QWebView-to-browse-quot-https-quot-secure-sites

            and handled the sslErrors . I am seeing the following error:

            "The certificate is not yet valid".

            Can someone explain what is happening here?

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vinoth
              wrote on last edited by
              #6

              The issue seems to be because of the system time. The time was set to Jan 1970 that caused the error. When I set the time to current time, https sites were loading fine.

              1 Reply Last reply
              2
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by SGaist
                #7

                Hi,

                Likely because your certificates would be considered invalid since their date of validity would be starting e.g. this year.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved