Ethernet sheeld over G3

Hello,
As a newbe I am very interested in the use of the ethernet sheeld.
Via the domotic project I can control a LED via a local Wi-Fi connection. Using a android phone, ethernet sheeld, arduino 328. :~
But via the telephone line G3 it is not working.
As far as I understand it has someting to do with dynamic and/or static IP numbers.
I am using a WAG325N adsl+ modem.
What must I change where to get it working.
It seems to be a very difficult item as I have no solution yet and I am working on it many weeks.

Theo

Hei Theo,

If you are on a remote lan (not on the same subnet) it does not work.
Generally the arduino has no knowledge about "default gateway" and routing.
It cannot send packets to a default gateway to be routed.

Check if you are on the local subnet first.

Cheers, Peter

Just a little addition, because i see it works on the local subnet.

What you can do is send the command to a host on your network and let this host handle the routing and forwarding to the Arduino.
If you do not use a host on the local network then it will be very difficult if not impossible.

Cheers, Peter

As far as I understand it has someting to do with dynamic and/or static IP numbers.

You may need to use a dynamic ip service like no-ip.com if you want access outside your lan.

Best ZOOMKAT,

Thanks for your reply.
Your solution is mentioned also earlier. My question is will it work on the same android app?
I mean is it working local as well as via G3 ?
Thus this mean also it has nothing to do with forwarding IP address in the wag235N ADSL router?

Regards, Theo

If your arduino is behind a router, then you will probably have to use port fowarding on the router to gain access from the internet. I'm not sure how android applications work, but if they are web enabled, then you should be able to access your arduino. below is a simple test page currently on my arduino.

http://zoomkat.no-ip.com:84/

@zoomkat,
Tnks for the reply, indeed the arduino is after a router. Port forwarding I checked and this is also not working.
I made a sketch from my situation but I find it hard to enclosed a image in this post????
Also I read your discussion with IP solutions. IP gives much problems.
The solution from RTILAART will work but I think it must be possible just find the correct script programming and IP route?
I am continiouing looking for the solution.

Regards Theo,
ps.
I attach the jpg image hopefully you can read it.

Sorry, but you are missing the point.

Whatever you do with apps, phones, routers etc will NOT work unless...
you have a gateway in your lan on the subnet the arduino is on.
There is no way at present an arduino with ethershield can send traffic out into the word by itself because it simply does not know where to send the traffic to.

So,... no it will not work with an Android phone on a different subnet (or out on the internet for that matter).

Cheers, Peter

@noorman,

Tak for the anser.
So this means the ethernet sheeld W5100 type can`t be reached via internet and send a message to an IP address else on the internet ( smartphone)
Only local via Wi-Fi is this correct?

Theo

@noorman,

My WAG235N ADSL router is a gateway ?

Theo

There is no way at present an arduino with ethershield can send traffic out into the word by itself because it simply does not know where to send the traffic to.

I don't think that is technically correct. If one uses a static IP address assigned by an ISP and the ISP gateway IP address in the arduino code, then the arduino should work connected directly to the ISP's cable modem.

I am continiouing looking for the solution.

Have you gotten any ethernet internet code to work, such as simple client code?

@zoomkat,

No, I only have had the local set-up running from the DomoticHome and is working.

If you mean I have to test ethernet connection as mentioned on your discussion with IPsolutions. That means I have to download the script and checked it.
I can do that.
So i will read the discussion again and download the script and will test the connection.
BTW I had a look at the W5100 webside. Somewher in the datasheet they mentioned to read the ADSL application appendix. But the appendix I couldn`t find.
Still I have the question How do my provider know where the message to send from my smartphone ? Where only the local IPaddress is given?
Local over WI-FI I can understand. But over 3G it is still a mistery.

I will check the ethernet sheeld and arduino and let you now.

Tnks for now,

Regards, Theo

@zoomkat,

Best Zoomkat I tested your ethernet test script tanks for your congretiolation.
So that is working.
The next step to olve my problem is tofind out how the 3G phone is routed to my adsl325N wi-fi router.
I must say it is only function as modem more or less. I didn,t configure a local network.
Planet internet is my provider and I have only a internet address. Which routes to my computer with my e-mail adres.
So I like to kow howe can my provider now that my phone send a commant to my arduino ethernetsheeld combination with a IP adres
which is in use at many routers???

Theo

ps.Mean tome I look at the solution from RobTilaart.

This is correct, the arduino can only send packets to nodes on the local subnet.
It has no knowledge of "default gateways" etc. Therefor cannot send packets out of the local subnet.
Basically, the arduino cannot find the "door", it is living oblivious in it's own little world.

Cheers, Peter