Skip to content

Black Dashboard on public IP #52

@Mer-idium

Description

@Mer-idium

Hi All,

I am trying to get this working on a VPS and a public IP.

my geth command looks like this:
geth --datadir /dataPath --networkid 9900 --nodiscover --rpc --rpcaddr 127.0.0.1 --rpcapi "web3,net,eth,personal" --rpccorsdomain "http://public IP:15000" console

my app.js is this:

var GETH_HOSTNAME       = window.location.hostname;     // put your IP address!
var APP_HOSTNAME        = "See package.json --> scripts --> start: Change 'localhost'!!!";
var GETH_RPCPORT        = 8545;                 // for geth --rpcport GETH_RPCPORT
var APP_PORT            = "See package.json --> scripts --> start: Perhaps change '8000'";
// this is creating the corrected geth command
var WL=window.location;
var geth_command = "geth --rpc --rpcaddr "+ GETH_HOSTNAME + " --rpcport " + GETH_RPCPORT +'\ --rpcapi "web3,eth" ' + ' --rpccorsdomain "' + WL.protocol +"//" + WL.host + '"';

and package.json:
"start": "http-server ./app -a 0.0.0.0 -p 15000 -c-1"

The webpage comes up with a header and a footer but no blocks are displayed. There is no pop up about geth not being connected as well.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions