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. [SOLVED] TCP fortune example didn't work properly on Centos
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] TCP fortune example didn't work properly on Centos

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.7k 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
    ms_tensai
    wrote on last edited by
    #1

    hallo,

    i tried to ran both fortuneclient and fortuneserver example on centos in different pc. when i connected fortuneclient application to fortuneclient application, i got error QAbstractSocket::NetworkError. Then, i tried to ran fortuneclient application on centos and fortuneserver application on ubuntu and everything work properly.

    is anyone know why?

    • i am using Qt 4.74 version

    thanks
    Miftah

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Do you have a portfilter/firewall set up on centos?

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

        yes, i have my firewall turned on. Then, i tried to turned it off and everything work properly now.

        But, i wonder is there any risk if i turned firewall off?

        thanks
        Miftah

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Without a firewall everybody (depending on your setup that is "everybody in your local network" or "everybody on the internet") can connect to any open port on your machine

          If you have the firewall on, then only those ports the firewall allows through can be reached from outside your machine. That will of course stop any network services you set up on your machine from working (e.g. the fortuneserver).

          Of course you can also configure the firewall allow certain ports while blocking others.

          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