Hi, I needed to use 2 Ethernet shield each connected to one router. I needed it to access remotely but, I do not have static IP address. I am using webclient and webserver for the two shield but, how do I allow the webserver and webclient to connect without connecting a switch or additional hardware for the router?
I needed it to access remotely but, I do not have static IP address. I am using webclient and webserver for the two shield but, how do I allow the webserver and webclient to connect without connecting a switch or additional hardware for the router?
If you need to access the Arduino(s) from anywhere, the router needs a static IP address, or you need to register for a service that updates DNS servers when the router's IP address changes.
If the Arduino's simply need to talk to each other, the router should assign them the same address every time.
Sorry, is it possible if you could show me how to configure the router (i am using prolink prn2001) cause i am new to configuring router. i try doing the port forwarding but could not get remote access.
If the two routers (Router-1 and Router-2) have their own public IPs, then you must port forward the public IP and port to the private IP and port of the Arduino on each router.
Do I need to first set the port forwarding configuration with the private IP (IP address in my router range) and the port(how do I know which no. to use?)? and then access using the public IP:Port no?
Sorry cause I am really new to router configuration.
Crays:
Internet ----- LAN-1 ------ Router-1 ------ Arduino-1
and other
Internet ----- LAN-2 ------ Router-2 ------ Arduino-2
I wanted to do like this but, I don't know. Could you show me?
The Arduino which is the "client" must know the "Internet IP address" of the Arduino which acts as server.
Otherwise he will not be able to connect.
If the "server" is hanging on a router with "dynamic IP adress", you have different possibilities.
One possibility would be: You look up the "router status page" in the configuration interface of the router where the server is connected. You could then make a telephone call, give that address to the client, and the client can use that IP address to connect.
Disadvantage: Every time the router establishes a new connection, you would have to give the new 'dynamic' IP address to the client. If your router is "always on", maybe it disconnects and reconnects once per day, so that the dynamic address maybe changed every day (depends on your internet access provider).
In many cases you can automate that by using a "Dynamic Hostname Service" or "Dynamic DNS Service", but this would require as well some LAN/networking experiences as either a router that is enabled for a Dynamic DNS service or you have a PC running all the time with a service software enabling that function.
Other solutions would be possible if you have a webserver with PHP scripting and local file writing enabled on the Internet.