Page 1 of 1

Put Automation WebioPi live on internet

Posted: Sat Apr 04, 2015 5:36 am
by prabhat228
Hello All,

I am making a mini project of automation using RPi and Webiopi. Here is the tutorial link which we followed
http://forums.connectedly.com/raspberry ... rnet-2884/

Earlier I was using router and port forwarding to access our Pi from outside network. I used to give my external ip:port and login page comes on....but now I want to eliminate the need of router.

I just want to have 1 URL address. When I enter it, it should directly go to my project's login page.
For this, I guess I need web hosting..so I made an account on hostinger.in
I have also installed avahi daemon on Pi.

Please help me as I am lost and dont know how to configure hostinger.in with my Pi

Re: Put Automation WebioPi live on internet

Posted: Sat Apr 04, 2015 12:02 pm
by silic0re
You don't need hosting, since you already have a host (the Pi).

What you need is a DNS service to point a web domain to your Pi. Since your router uses a dynamic address, you would need a dynamic DNS service to do it. If you search the internet for Dynamic DNS, you will find a lot of providers for this service, some free, some paid.

You will also need an updater client to update the DNS service for your IP address, and this would usually run on the Pi. Each one uses their own method so you would have to research which ones work on the Pi. After you get this all set up you would just type your domain address into any web browser and your Pi would come up.

NoIp is a free service and they have an updater client that works on the Pi. http://www.noip.com/free to sign up for the service and see http://raspberrypihelp.net/tutorials/29 ... p-tutorial to get it set up on your Pi. You have to have GCC installed so if you don't, look up a tutorial for installing GCC before going through the noip tutorial.

Re: Put Automation WebioPi live on internet

Posted: Sat Apr 04, 2015 8:20 pm
by prabhat228
Hi,

as instructed by you..i have installed noip client on pi. I have also created a free host from noip....now, how am i suppose to make it work ?

the hostname should point to dynamic IP:8000 port of my pi.....cant figure it out

Re: Put Automation WebioPi live on internet

Posted: Sun Apr 05, 2015 12:08 am
by silic0re
Did you run the "make install" command that asked for your username and password?

You also need to run the command at the bottom to start the no-ip client. After that you need to configure your router for port forwarding: http://www.noip.com/support/knowledgeba ... sl-router/

Re: Put Automation WebioPi live on internet

Posted: Sun Apr 05, 2015 5:51 am
by prabhat228
hi,

i did all the steps, entered username and password too.

my demand is to remove the router's port forwarding part. The project should work with any internet connection (independent of location). [please read the question once again]

"......Earlier I was using router and port forwarding to access our Pi from outside network. I used to give my external ip:port and login page comes on....but now I want to eliminate the need of router..... "

i somehow need to connect web hosting DNS with my RPi.

Hope i am clear with my idea.
:)

Re: Put Automation WebioPi live on internet

Posted: Sun Apr 05, 2015 5:55 am
by B.Goode
I understand that the Weaved IoT mechanism works with WebIoPi. Maybe that would provide the service you are looking for.

Re: Put Automation WebioPi live on internet

Posted: Sun Apr 05, 2015 6:45 am
by elParaguayo
Silicore's advice looks good to me.

When you say you want to "remove the port forwarding part" I'm not sure you can. You only have one external ip address and that will point to your router add it is the gateway to the internet. Any incoming connections have to pass through the router. The only way your router will know to direct an incoming connection to your pi is by using port forwarding.

This is how I access various things on my home network when I'm away. Works beautiful too.

Re: Put Automation WebioPi live on internet

Posted: Sun Apr 05, 2015 8:01 am
by prabhat228
elParaguayo wrote:Silicore's advice looks good to me.

When you say you want to "remove the port forwarding part" I'm not sure you can. You only have one external ip address and that will point to your router add it is the gateway to the internet. Any incoming connections have to pass through the router. The only way your router will know to direct an incoming connection to your pi is by using port forwarding.

This is how I access various things on my home network when I'm away. Works beautiful too.

thank you everyone :)
B.Goode ... weaved did the trick for me. Although its not the optimum solution, but i managed to bypass the port forwarding.




regarding the noip. I have installed it in RPi. I hv its DUC client in my windows....the url i created is xyz.ddns.net
but how am i suppose to use this ? :P sorry, this is my first project and I am quite a newbie with it