I cannot access my Ubuntu 14.04 using browser.

March 21, 2016 1.1k views
Git Configuration Management

What I am trying to do is to access my ubuntu using my IP address with port 7000. So like IPaddress:7000. However, I get an error message saying, ERRCONNECTION_REFUSED.

sudo apt-get update

sudo apt-get install git
sudo apt-get install vim

ssh-keygen -t rsa

cd .ssh

vim id_rsa.pub

Add the public key to GitHub

sudo apt-get install curl build-essential python

curl -sL http://downloads.lisk.io/scripts/setu... | sudo -E bash -
sudo apt-get install -y sqlite3

curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
sudo apt-get install -y nodejs

sudo npm install grunt-cli -g

sudo npm install bower -g

sudo npm install forever -g

git clone https://github.com/LiskHQ/lisk.git
cd lisk
git branch
git checkout master
git branch

npm install

git submodule init
git submodule update

cd public
npm install
bower install --allow-root
forever start app.js

this is what I typed after I logged into ssh terminal.

I tried stopping firewall to see if that was the problem but nope :(

Anyone got any thoughts on why the connection is refused?

1 Answer

Is something listening on port 7000? lsof -i :7000 -n

  • lsof -i :7000 -n what does this do? Does it list things that are connected to 7000 port I assume?

    • Show applications listening to port 7000.

      • I didn't get anything when I typed that.

        • Then nothing is listening on port 7000.

          • Oh... Then shouldn't I be able to access my Ubuntu just with the IP address on web browser? Do I need to configure anything before I do so? Cuz it says that server is not responding when I just type IP address without a port.

          • It actually says this when I just type IP address. ERRCONNECTIONREFUSED. Whyyyy am I refused to get into my Ubuntu noooo

        • Then nothing is listening on port 80 either.

          • Okay. Then how should I approach solving the problem I am having? Any suggestions will be appreciated!

        • Figure out why it isn't listening on port 7000. Read the documentation. Check the logs. Run it directly (not through forever).

Have another answer? Share your knowledge.