Hi to all I have developed a project with arm Cortex m-3 (LPC series) equipted with tcp/ip and i connected a modem router to it with CAT5 cable .When I would like to connect to my device from another city I must buy and set the Static ip address on the router and do port forwarding to access to my device.i want to send microcontroller public ip address to the web service every time the device is reset or turn on. Does any one know how can i use Dynamic DNS in my microcontroller and give me a light on this way in oredr to decrease the price of project via removing static ip address?
No, that's not what I said at all.
You have completely misunderstood me!
I don't know how else to explain it.
I guess there is a language barrier - can you get a teacher or colleague to help you?
anyone explain?
Let me try.
K Panook,
You have a computer, which you use to develop the Cortex-M3 firmware.
I would like to connect to my computer from another city I must buy and set the Static ip address on the router and do port forwarding to access to my computer. i want to send public ip address to the web service every time the computer is reset or turn on.
Do you know how to achieve the above goal?
It would be much easier than doing the same thing on a Cortex-M3. After you achieve the above goal, repeat the same procedure on your Cortex-M3.
hello john linq. great help. i understand you. thanks.
You started with: "I would like to connect to my device from another city I must buy and set the Static ip address on the router and do port forwarding to access to my device. i want to send microcontroller public ip address to the web service every time my device is reset or turn on."
All John did was substitute "my computer" for "my device" - giving: "I would like to connect to my computer from another city I must buy and set the Static ip address on the router and do port forwarding to access to my computer. i want to send public ip address to the web service every time my computer is reset or turn on."
Thus illustrating my point that it doesn't matter what the device is - the process is the same for any device: "I would like to connect to 'anything' from another city I must buy and set the Static ip address on the router and do port forwarding to access to 'anything'. i want to send microcontroller public ip address to the web service every time the 'anything' is reset or turn on."
As the saying goes, On the internet of things, nobody knows you're a fridge.
agree. thank you john linq. you give a very good explaining. when i want to connect sweet potato chips to internet i will remember anything. haha.
Just so long as your chips have a TCP/IP stack and DDNS client ...
;-)
John you have completely changed my question. I said i developed an embedded system using LPC17xx (cortex-m3) equipted with TCP/IP and want to find its public IP address on the internet. I connect it to modem router and bought an Ip static for monitoring and control my embedded system (LPC17xx) from another city.I looking forward to find a way for connecting to my microcontroller(NOT COMPUTER) without IP STATIC .Like a DDNS for CCTV. I read all your answers.Have you give a best and perfect guidance document for doing so?
If you have a COMPUTER connected to the internet, how do you find the public IP address of that?
You normally don't. Why? because the computer connects to the internet via a router.
It is the router that is connected to the internet. It is the router that has the public IP address.
Frequently, any device connected to the router (on the 'home' side') uses a local IP address provided by the router.
This scheme is generally seamless when your computer makes a connection with the outside world. If you want to talk to your computer FROM the outside world, you need to specify a forwarding rule on the router. From the outside, you make a connection to the public address of the router and the router passes the traffic onwards to your computer.
So, what you do is find the public IP address of the router.
Now, as has been mentioned a number of times on this thread, replace the word COMPUTER with 'your device' or 'LPC17xx'. You should realise that you still need to know the public IP address of your router. Your device has NOTHING to do with it.
So, look in the documentation for your router and figure out how to use DDNS or whatever you think is most appropriate.
It's really VERY simple.
Thank you man this is your best answer.Thanks