question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ws to port 3472 issue

See original GitHub issue

It is not clear why the code is trying to connect to port 3472.

Testing a sample code below:

    const myCore = Hypercore(null, {
      valueEncoding: 'json',
      persist: false,
      storage: null  // storage: RAI
    })
    myCore.append(JSON.stringify({
      name: 'Alice'
    }), () => { 
      const discoveryCoreKey = 'dat://bee80ff3a4ee5e727dc44197cb9d25bf8f19d50b0f3ad2984cfe5b7d14e75de7'
      const discoveryCore = new Hypercore(discoveryCoreKey, {
        persist: false,
        extensions: ['discovery']
      })

      // When you find a new peer, tell them about your core
      discoveryCore.on('peer-add', (peer) => {
        console.log('Got a peer!')
        peer.extension('discovery', myCore.key)
      })
      discoveryCore.on('extension', (type, message) => {
        console.log('Got extension message', type, message)
        if (type !== 'discovery') return
        discoveryCore.close()

        const otherCore = new Hypercore(message, {
          valueEncoding: 'json',
          persist: false
        })
        otherCore.get(0, console.log)
      })
    });

In the browser, getting the below error:

WebSocket connection to 'ws://localhost:3472/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

image

as well as this error: image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
karlmoubarakcommented, Mar 21, 2020

Yeah so… The problem was my NAT. It seems that having the webpage tested by different browsers on different networks never yielded the same result. It either works or doesn’t. But I’ll take what I can for now.

Anyways, thanks @RangerMauve for your support, and for the extra cool stuff being worked on with DAT. Keep it up! I’m excited to see what comes out 😄

0reactions
RangerMauvecommented, Apr 8, 2020

Gonna close this for now since it’s not very actionable yet

Read more comments on GitHub >

github_iconTop Results From Across the Web

service-names-port-numbers.txt
Service names and port numbers are used to distinguish between different services that run over transport protocols such as TCP, UDP, DCCP, and...
Read more >
TCP 3472 - Port Protocol Information and Warning!
Because protocol TCP port 3472 was flagged as a virus (colored red) does not mean that a virus is using port 3472, but...
Read more >
JMS Producer/Consumer problems. · Issue #3472 · eclipse-ee4j ...
glassfishrobot opened this issue on Aug 7, 2007 · 17 comments ... should always happen when the client releases the WS port, right...
Read more >
TCP/UDP Port Number List - What Is My IP Address
Port list of well known, registered, and dynamic/private ports.
Read more >
CVE-2014-3472 - Vulners
Description. The isCallerInRole function in SimpleSecurityManager in JBoss Application Server (AS) 7, as used in Red Hat JBoss Enterprise Application ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found