Skip to content

console RPC connection to resolvable name does not connect #16457

Closed
@lazzarello

Description

System information

Geth version:

$ geth version
Geth
Version: 1.8.4-unstable
Git Commit: 50dbe8e2444cfc171930cb82cc99017f6a0aadf2
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.10.1
Operating System: darwin
GOPATH=/Users/leeazzarello/go
GOROOT=/usr/local/opt/go/libexec

OS & Version: macOS 10.13.3 (17D102)
Commit hash : 50dbe8e

Expected behaviour

Running geth attach http://2blockchains.local:8545 established a connection to the RPC interface and I can call API methods.

Actual behaviour

2blockchains:~ leeazzarello$ ping -c 1 2blockchains.local
PING 2blockchains.local (10.7.34.116): 56 data bytes
64 bytes from 10.7.34.116: icmp_seq=0 ttl=64 time=0.044 ms

--- 2blockchains.local ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.044/0.044/0.044/0.000 ms

2blockchains:~ leeazzarello$ geth attach http://2blockchains.local:8545
Fatal: Failed to start the JavaScript console: api modules: invalid character 'i' looking for beginning of value

2blockchains:~ leeazzarello$ geth attach http://10.7.34.116:8545
Welcome to the Geth JavaScript console!

instance: Geth/v1.8.2-stable/darwin-amd64/go1.10
 modules: eth:1.0 net:1.0 rpc:1.0 web3:1.0

> web3.eth.syncing
{
  currentBlock: 2952311,
  highestBlock: 2975628,
  knownStates: 36109445,
  pulledStates: 36109445,
  startingBlock: 2952311
}

Steps to reproduce the behaviour

Ensure the host has a resolvable Zeroconf/Bonjour name. Run geth with the --rpcaddr 0.0.0.0 parameter. Attach geth to the Zeroconf name.

Backtrace

I didn't get that far.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions