Comments on How To Install No-ip2 On Ubuntu 12.04 LTS In Order To Host Servers On A Dynamic IP Address
How To Install No-ip2 On Ubuntu 12.04 LTS In Order To Host Servers On A Dynamic IP Address Hosting your own servers at home is great, you can host your own website from home, share family photos, and stream your media to anywhere in the world. However all of this requires that you have a location on the internet which people can find such as http://www.mywebsitedomain.com. This is normally done by purchasing a domain name and pointing it to a static IP address which isn't free. In this how-to I will show you how to achieve the same web address result on a dynamic IP address by installing the free No-IP service into Ubuntu 12.04 LTS which is also the perfect host for your own websites and streaming services.
19 Comment(s)
Comments
Please remove the period at the end of ( sudo chmod 7777 /usr/local/etc/no-ip2.conf.)
I spent an hour googling what the problem was.
LOL Sorry, It's always the little things huh. Fixed now. To be honest I had no idea anyone even looked at this.
Also, thanks for letting me know :)
You should be able to test the startup scripts with
sudo /etc/init.d/noip stop
sudo /etc/init.d/noip start
...should have something that says to test with /bin/sh *or* have a comment that says it should be executable:
chmod +x /etc/init.d/noip start|stop
sudo nano /etc/init.d/noip
Copy and paste all the following lines (between the long ##### lines) into the file you have just started. (If you are using putty from within windows you can use ctrl-c to copy then in the putty terminal either right cick or use shift-ins to paste
#######################################################
# alt-by wael salah eldien eplusweb.com
#! /bin/sh
case "$1" in
start)
echo "Starting noip2"
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2"
for i in `noip2 -S 2>&1 | grep Process | awk '{print $2}' | tr -d ','`
do
noip2 -K $i
done
;;
status)
echo -n "display info about running clients"
/usr/local/bin/noip2 -S
;;
*)
echo "Usage: $0 {start|stop|status}"
exit 1
esac
exit 0
#######################################################
Now exit and save. ctrl-x to exit and y to save.
You should be able to test the startup scripts with
sudo /etc/init.d/noip stop
sudo /etc/init.d/noip start
sudo /etc/init.d/noip status
result like this
display info about running clients1 noip2 process active.
Process 2711, started as noip2, (version 2.1.9)
Using configuration from /usr/local/etc/no-ip2.conf
Last IP Address set xx.xx.xx.xx
Account xxxxAcount
configured for:
host xxxxxx.noip.me
Updating every 5 minutes via /dev/eth0 with NAT enabled.
I followed to the letter but I got an error...
ndb@web:/etc/init.d$ sudo /etc/init.d/noip start
sudo: /etc/init.d/noip: command not found
ndb@web:/etc/init.d$
Why?!
Had the same problem.
chmod +x /etc/init.d/noip
This worked for me.
Hi,
sudo /etc/init.d/noip status
there is no status displayed after running the command. I can seem to know if its realy working. I can also open 8245 port in my ROUTER this is wierd
Im lookint at this now xD
Thanks you
First sorry for my bad English. I would like to thank you for the help, was having problems with the update-rc and permissions using the rc.local my problems were solved. Once again, thank you!
this solution break my startup , the boot does not finish because of the noip script .
a better way that works too (tested here) is like this :
in rc.local above exit 0 write this only :
/usr/local/bin/noip2
and noip will start on boot without stopping it .
I installed no-ip updater and it starts at boot normaly (12.04). The problem is that it does not update public ip when isp change it or when router is rebooted so I have to enter it manualy... I have no idea why is this happening. It works under windows with same account but different host.
Awesome guide, much better than the offical No IP knowledge base!
I recommend editing to run the chmod on /etc/init.d/noip BEFORE trying to run start/stop - I had to do that otherwise I got the error "sudo: /etc/init.d/noip: command not found"
Otherwise, awesome tutorial! Thanks.
I have three hosts with the same IP address, but only one gets updated. How to add the other two hosts?
Great instructions. Works nicely with Ubuntu 16.04 LTS.
This is now outdated as of ubuntu 15 because rc.local is no longer used by default. systemd is now used to enable system services.
So for ubuntu 15+ you would finalize the setup with.
Create a systemd-File with the name noip2.service in /etc/systemd/system/ with:
Code: [Unit] Description=DynDNS by NoIP [Service] Type=forking ExecStart=/usr/local/bin/noip2 [Install] WantedBy=multi-user.targetEnable at Boot:
Code: systemctl enable noip2.serviceStart:
Code: systemctl start noip2.serviceStatus:
Code: systemctl status noip2.serviceThanks, this was very helpful!
You wrote: "Hit enter to accept the 30 second update rate"
This is 30 minutes, not 30 seconds.
no-ip technical support tells me the minimum amount of time for the refresh rate allowed is 5 minutes.