Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Setting QTcpServer to port 80.
Forum Updated to NodeBB v4.3 + New Features

Setting QTcpServer to port 80.

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 1.5k Views 2 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
    MadScientist92
    wrote on last edited by
    #1

    I'm attempting to write HTTP server based on TCP. For now, I'm trying to modify fortune client/server example. However, I'm running into a problem of connecting to port 80. I do know that these ports are protected from using, though is there a away to accomplish that somehow?

    tcpServer->listen(QHostAddress::Any, 80)
    
    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Its not protected as such but already in use often.
      Can you provide more details about os, firewall settings. Over all design / goals ?

      1 Reply Last reply
      1
      • M Offline
        M Offline
        MadScientist92
        wrote on last edited by
        #3

        I have this task at the university to build local http client-server that would execute elementary GET requests. I'm using Ubuntu(not sure about firewall settings). At this point, I don't have any design, I'm simply using fortune client example from standart Qt examples library, trying to make it work on 80(443) port, which is( as far as I get it) basic thing for building http server.

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

          Hi,

          You don't need to use that particular port to develop your application.
          It's usually the front facing application that uses it (apache, nginx, etc).

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

          M 1 Reply Last reply
          2
          • SGaistS SGaist

            Hi,

            You don't need to use that particular port to develop your application.
            It's usually the front facing application that uses it (apache, nginx, etc).

            M Offline
            M Offline
            MadScientist92
            wrote on last edited by
            #5

            @SGaist But would that count as HTTP server without 80 or 443 port?

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

              80 is just an attributed port number, same for 443.

              The tech answering behind doesn't care at all what the port number is.

              Most web development frameworks use 8080 by default.

              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
              1

              • Login

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