Blog Archive

Sunday, May 26, 2019

How to setup & visit home server from outside

Date: 5/26/2019

Abstract:
This essay will focus on visiting home linux server from outside.
Step 1:
Go to the following website to register an account
https://www.noip.com/
For example:
username: YourOwnAccount@gmail.com
password: YourOwnPassword

Step 2: In your server, Download client & install & configure
Download the linux version of the noip client from the following link:
https://www.noip.com/download?page=linux


Once you have opened your Terminal window, log in as the “root” user. You can become the root user from the command line by entering “sudo -s” followed by the root password on your machine.
  1. cd /usr/local/src/
  2. wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
  3. tar xf noip-duc-linux.tar.gz
  4. cd noip-2.1.9-1/
  5. make install
  6. /usr/local/bin/noip2 -C (dash capital C, this will create the default config file)
  7. /usr/local/bin/noip2  & # run noip2 in backgroud


Ref:

https://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client-on-ubuntu/

Step 3: install ssh in your server
sudo apt-get update  # in case you have any problem, reboot system and re-run this
sudo apt-get install openssh-server
sudo service ssh status
http://ubuntuhandbook.org/index.php/2016/04/enable-ssh-ubuntu-16-04-lts/
Step 4: port forwarding:
Suppose you get you domain name from noip.com like the following:

http://YouOwnDDNSaccount.ddns.net/
Then you can setup port forwarding in the following
http://YouOwnDDNSaccount.ddns.net/port_forwarding.php
you can also try:
http://192.168.10.1/
the default
user:admin
pass:password

Step 5: Check:
Option 1:you can validate step3 with local ip of your server:
for example: (port: 22)
ssh yourUserName@10.0.0.136

Option 2:
try port 22 and ip: 12.34.56.78 (just for example)
https://www.yougetsignal.com/tools/open-ports/

Option 3: testing outside your home network (outside your home wifi)
ssh yourUserName@12.34.56.78
Note, you can not test option 3 within your home network.

Refererece:
1) https://www.howtogeek.com/66438/how-to-easily-access-your-home-network-from-anywhere-with-ddns/
2) hardware: arris router
ARRIS Surfboard (24x8) DOCSIS 3.0 Cable Modem Plus AC1750 Dual Band Wi-Fi Router and Xfinity Telephone, 1 Gbps Max Speed, Certified for Comcast Xfinity Only (SVG2482AC)
https://www.amazon.com/gp/product/B06XDGWKSB/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1