srahmati
Posts: 26
Joined: Sat Oct 04, 2014 6:40 pm

cant acsess to webiopi

Thu Dec 11, 2014 1:55 am

Hi I want to control a relayconnected to pi with a smartphone and not in the same network connection.I installed DrGPIO app and followd the instruction below
http://fuenteabierta.teubi.co/2013/02/c ... m.html?m=1 my raspberry is connected to my laptop over putty and I'm sharing the wifi.when I follow the instructions I just could access to my pi with my laptop browser that connected to pi.but I coldnt access it from my smartphone or other computer.can someone help me?thank you

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: cant acsess to webiopi

Thu Dec 11, 2014 2:27 am

Is your other computer or your cellphone are on the same network?

if they are outside your router network it won't work unless you reroute the port 8000 directly to your Raspberry Pi .

Daniel

srahmati
Posts: 26
Joined: Sat Oct 04, 2014 6:40 pm

Re: cant acsess to webiopi

Thu Dec 11, 2014 2:45 pm

danjperron wrote:Is your other computer or your cellphone are on the same network?

if they are outside your router network it won't work unless you reroute the port 8000 directly to your Raspberry Pi .

Daniel

They are all connected with the same wifi.but actually I want access to it from mobile data.if I can't use webiopi is there any Android app that I can use?thank you

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: cant acsess to webiopi

Thu Dec 11, 2014 11:57 pm

I want access to it from mobile data.if
Do you mean via your mobile network. This mean outside you local network.

There is two methods you could use.

The router block your port!

Set your router to portforward directly to your PI. I assume port 8000.

The second method is more complicated.

Create a OpenVPN network with the raspberry pi has server. This works well if you have an Android cellphone but you will still have to port forward.


There is a third method which request a cloud system. There is a lot of cloud system around but I'm not an expert on that.

Daniel

srahmati
Posts: 26
Joined: Sat Oct 04, 2014 6:40 pm

Re: cant acsess to webiopi

Fri Dec 12, 2014 12:19 am

danjperron wrote:
I want access to it from mobile data.if
Do you mean via your mobile network. This mean outside you local network.

There is two methods you could use.

The router block your port!

Set your router to portforward directly to your PI. I assume port 8000.

The second method is more complicated.

Create a OpenVPN network with the raspberry pi has server. This works well if you have an Android cellphone but you will still have to port forward.


There is a third method which request a cloud system. There is a lot of cloud system around but I'm not an expert on that.

Daniel
yes i mean mobile network and outside my pi network.can i use ssh in this case?i have been confused of testing android apps.but no one is working.if i want choose the first methode can you please explain more bout it and why should i do that?i will be thankful if you can explain.

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: cant acsess to webiopi

Fri Dec 12, 2014 1:54 am

First check your router if you are able to do port forwarding.

I do have a Dlink router and I port forward global port to the local raspberry PI local IP port.

Image

After check for free DNS

like noip.com or dyndns.org . If you have a Dlink router you could use dlinkddns.com.

When you are done with the DNS configuration and port forwarding, you will be able to access your Raspberry PI everywhere.

For more security , you should set a openvpn server on your Raspberry Pi. Google it you will find nice tutorial.

srahmati
Posts: 26
Joined: Sat Oct 04, 2014 6:40 pm

Re: cant acsess to webiopi

Mon Dec 15, 2014 1:55 pm

[quote="danjperron"]First check your router if you are able to do port forwarding.
Hi actually I was searching for a good usb modem this days beacause I want use it in a project and have ausb modem is easier.I just have a question.if I connect the usb modem to my laptop and sharing the wifi to raspberry pi and if I do portforwarding to my modem does it do portforwarding to my pi too?is this instruction enough in this case?thank you

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: cant acsess to webiopi

Mon Dec 15, 2014 2:29 pm

With the security problem using a pc to share wifi and port forwarding I think it is way easier to use the modem directly to a router.

The big problem I have with a pc is that is has to be on all the times and a windows pc reboot by itself often when software update occurs.

B.T.W what is our modem. A lot of them have usb and ethernet build in.


I.M.O. A modem with a wireless router is the best solution.


My daughter has asl modem/router. I just add an external router for her system instead of using the internal one because it was missing a lot of features like port forwarding, firewall and guest wifi.

srahmati
Posts: 26
Joined: Sat Oct 04, 2014 6:40 pm

Re: cant acsess to webiopi

Thu Dec 18, 2014 1:08 pm

danjperron wrote:First check your router if you are able to do port forwarding.

I do have a Dlink router and I port forward global port to the local raspberry PI local IP port.

Image

.
hi i could use DrGPIO app that uses webiopi with my android but in my network.my router confige page and NAT confige is like that
Capture.PNG
Capture.PNG (33.87 KiB) Viewed 3253 times
what should i write in internal and external ports?i couldnt find a good document for my router.thank you

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: cant acsess to webiopi

Thu Dec 18, 2014 1:58 pm

Try to put all the port at 8000 and use the Raspberry Pi IP for the remote IP.

JimAtWeaved
Posts: 7
Joined: Sun Aug 17, 2014 4:41 pm

Re: cant acsess to webiopi

Sat Dec 20, 2014 5:17 am

if you're using Webiopi you can try these instructions to add internet control of Pi and WebIOPi over internet without port forwarding. https://code.google.com/p/webiopi/wiki/ ... ITH_WEAVED

trouch
Posts: 310
Joined: Fri Aug 03, 2012 7:24 pm
Location: France
Contact: Website

Re: cant acsess to webiopi

Sat Dec 20, 2014 9:22 pm

Hi this is Eric, the WebIOPi developper.
You can use Weaved Pi installer to easily access WebIOPi from anywhere, it works very nice.
Once you access WebIOPi from your desktop browser, you can copy the address in the Dr GPIO configuration.

WebIOPi - Raspberry Pi REST Framework to control your Pi from the web
http://store.raspberrypi.com/projects/webiopi
http://code.google.com/p/webiopi/
http://trouch.com

srahmati
Posts: 26
Joined: Sat Oct 04, 2014 6:40 pm

Re: cant acsess to webiopi

Sun Dec 21, 2014 11:20 am

trouch wrote:Hi this is Eric, the WebIOPi developper.
You can use Weaved Pi installer to easily access WebIOPi from anywhere, it works very nice.
Once you access WebIOPi from your desktop browser, you can copy the address in the Dr GPIO configuration.
thank you for help.i have installed weaved and create an account and i can access to my page from internet too.but i dont know what should i write in DrGPIO app.my weaved page address that i can control gpio from it is https://cnftygmq.p4.yoics.net/
what should i write in DrGPIO hostname?

trouch
Posts: 310
Joined: Fri Aug 03, 2012 7:24 pm
Location: France
Contact: Website

Re: cant acsess to webiopi

Sun Dec 21, 2014 2:33 pm

for drgpio, your config should be
hostname : cnftygmq.p4.yoics.net
port : 80

WebIOPi - Raspberry Pi REST Framework to control your Pi from the web
http://store.raspberrypi.com/projects/webiopi
http://code.google.com/p/webiopi/
http://trouch.com

srahmati
Posts: 26
Joined: Sat Oct 04, 2014 6:40 pm

Re: cant acsess to webiopi

Thu Jan 08, 2015 10:36 am

Thank you so much for your suggestions I used port forwarding at last because in weaved with reboot the raspberry pi the weaved data were changing.so I used port forwarding and I use 2022 or 2222 port for external port .

Return to “Beginners”