I'm sure this has been asked a dozen times, but i have my uno wifi rev2 connected to the internet and can talk to it on LAN, but suppose i am at mcdonalds, how will I address it?
sevenoutpinball:
i have my uno wifi rev2 connected to the internet
You probably don't, and you need to understand the difference between the internet and your LAN. The simplest solution to your problem is to use the Internet of Things, whereby somebody else doe all the work, leaving you secure and legal. That way you get to talk to Arduino from McDonalds, and all sorts of places.
Nick_Pyner:
You probably don't, and you need to understand the difference between the internet and your LAN. The simplest solution to your problem is to use the Internet of Things, whereby somebody else doe all the work, leaving you secure and legal. That way you get to talk to Arduino from McDonalds, and all sorts of places.
Could you expound on the legal part of your comment. I currently do connect to devices on the Internet with my Arduinos and I am unaware of the legal side of doing so. I would like to make sure that I'm not doing anything illegal. It hadn't crossed my mind that there were laws about connecting devices over the internet.
Sorry, I'm afraid i was being rather misleading there, so don't panic. It is all to do with bypassing the security procedures within your internet service provider, and not an easy thing to do, especially by accident.
I assume the devices you connect to at the moment are interactive public devices on the internet.
For your own device, I submit that what you need to know about is the IoT, as outlined previously, which makes it available to the public.
In the unlikely event that you need to take the other tack, there has been discussion on this forum. I think the keywords are "port forwarding". I don't know anything about it, but I understand it is dependent on your ISP and possibly your router, and is usually or often simply not allowed.
@Nick_Pyner
Thank you for your response. I was a little worried there for a moment. I am connecting to an HTTP server that is accepting requests from the public on port 80 and 443. So basically just any other website, so I am no longer worried.
@OP
If you are at McDonalds and want to reach a server (Running on your Arduino) at your home you will need to know your WAN IP which is most likely dynamic (changes from time to time) and you will need to port forward from your home router as Nick_Pyner was mentioning. That is all network settings that have little to nothing to do with your Arduino sketch.
You can also use an IoT service as Nick was saying. This model you are not talking directly from device to device, both devices are hitting a server on the Internet and the server sends responses back to your devices.
If you want to access your home server via WiFi at McDonalds (lovin' it), you would need to either know your router IP address, get a static IP address from your ISP, or use something like no-ip to map a domain to your ip address. Then you would need to modify your router to forward whatever data that comes in on the port you specify to go to your server. Once that's done, you should be able to access your server from an outside WiFi connection.
yeah the thing speak site was real easy to send messages to, don't know if i can get an arduino to read the so made files. perhaps there is a way. thanks for all your help guys.
I think you are talking about two-way traffic - downloading historical data. I have only done this with Xively but it wasn't hard and it is probably common practice - although somewhat limited, as I remember it. The means of doing it would vary from service to service.
i will look up xively thanks.
I might have mislead you there. I was not actually recommending Xively. I have not used it for years and I think it is a different beast from what it was. Try here, I don't know if it has two way traffic, but it is a lot more friendly and you will find out soon enough.