Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. qwebchannel on network
Forum Updated to NodeBB v4.3 + New Features

qwebchannel on network

Scheduled Pinned Locked Moved Solved QtWebEngine
4 Posts 2 Posters 1.9k Views
  • 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.
  • E Offline
    E Offline
    e.capasso
    wrote on last edited by
    #1

    Hello, i try all example of QT 5.7.0 on qwebchannel. The examples run correctly with default configuration on the same PC, (
    if (!server.listen(QHostAddress::LocalHost, 12345)) {
    qFatal("Failed to open web socket server.");
    return 1;
    }
    but when i try to use a client on another PC in the network (connecting at ip of server), and use the server on the correct ipaddress of server, i obtain an error on client in js
    js: WebSocket connection to 'ws://192.168.150.86:12345/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
    js: web channel error: [object Event]
    js: web channel closed
    Someone can help me?

    raven-worxR 1 Reply Last reply
    0
    • E e.capasso

      Hello, i try all example of QT 5.7.0 on qwebchannel. The examples run correctly with default configuration on the same PC, (
      if (!server.listen(QHostAddress::LocalHost, 12345)) {
      qFatal("Failed to open web socket server.");
      return 1;
      }
      but when i try to use a client on another PC in the network (connecting at ip of server), and use the server on the correct ipaddress of server, i obtain an error on client in js
      js: WebSocket connection to 'ws://192.168.150.86:12345/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
      js: web channel error: [object Event]
      js: web channel closed
      Someone can help me?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @e.capasso said in qwebchannel on network:
      Is a firewall installed on the server machine?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • E Offline
        E Offline
        e.capasso
        wrote on last edited by
        #3

        No firewall! no Antivirus! i try hercules_3-2-8.exe for server tcp it run on connect of client but after it go in timeout because not receive info expected on connection.

        1 Reply Last reply
        0
        • E Offline
          E Offline
          e.capasso
          wrote on last edited by
          #4

          I solved....
          i am using Cesium Server on MachineA, and i open Cesium on Chromium Browser on MachineB.
          Js of Cesium in which i create a webchanel to exchange message with standalone exe (qt Webchannel example) must be on the same directory on Machine A.
          index.html on Machine B (Web Server on Machine A) refer to correct address and port on Machine A and found server qwebchannel on correct location.

          The post can be closed .
          Best

          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