prabhat228
Posts: 5
Joined: Sun Feb 08, 2015 6:06 am

Put Automation WebioPi live on internet

Sat Apr 04, 2015 5:36 am

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

silic0re
Posts: 14
Joined: Mon Mar 30, 2015 3:54 pm

Re: Put Automation WebioPi live on internet

Sat Apr 04, 2015 12:02 pm

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.

prabhat228
Posts: 5
Joined: Sun Feb 08, 2015 6:06 am

Re: Put Automation WebioPi live on internet

Sat Apr 04, 2015 8:20 pm

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

silic0re
Posts: 14
Joined: Mon Mar 30, 2015 3:54 pm

Re: Put Automation WebioPi live on internet

Sun Apr 05, 2015 12:08 am

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/

prabhat228
Posts: 5
Joined: Sun Feb 08, 2015 6:06 am

Re: Put Automation WebioPi live on internet

Sun Apr 05, 2015 5:51 am

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.
:)

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Put Automation WebioPi live on internet

Sun Apr 05, 2015 5:55 am

I understand that the Weaved IoT mechanism works with WebIoPi. Maybe that would provide the service you are looking for.

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: Put Automation WebioPi live on internet

Sun Apr 05, 2015 6:45 am

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.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

prabhat228
Posts: 5
Joined: Sun Feb 08, 2015 6:06 am

Re: Put Automation WebioPi live on internet

Sun Apr 05, 2015 8:01 am

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

Return to “Automation, sensing and robotics”