Go Down

Topic: Arduino on the Internet. problems with port forwarding? (Read 7481 times) previous topic - next topic

Danny182

hello,
I'm trying to put my arduing atmega2560 on the internet with the ethernet shield.
on the LAN it works. so when i digit 192.168.2.10 I see what's on the program.
(I'm using the example WebServer).
I tried to do the Virtual server on my router. on the Nat. here:
http://i38.tinypic.com/fbdyxd.jpg

when I go on my browser (not connected on the same LAN) i digit the public router adress: 94.199.**.*** but it goes on the page of the router, not on the Arduino page.
can someone help me

thank you

AlxDroidDev

It is wrong.

You forwarded port 80 on protocol UDP. A web browser works on port  80 protocol TCP. Change it to TCP 80 and it should work.
Some of my projects:
Shield for DS1337+, DS1624 and AT24C1024B (RTC, temp & mem): http://forum.arduino.cc/index.php/topic,126197.0.html
CHDK Camera remote shutter (BT, IR, USB): http://forum.arduino.cc/index.php?topic=295377.0

Danny182


It is wrong.

You forwarded port 80 on protocol UDP. A web browser works on port  80 protocol TCP. Change it to TCP 80 and it should work.


Thank you the reply.
I tried it even on the TCP and it didn't work.

zoomkat

Quote
I tried to do the Virtual server on my router.


So what router do you have?
Google forum search: Use Google Search box in upper right side of this page.
Why I like my 2005 Rio Yellow Honda S2000  https://www.youtube.com/watch?v=pWjMvrkUqX0

mauried

Many routers with Nat and port forwarding wont allow an external connection , if it appears to be coming from
inside the LAN.
So, to test that your port forwarding works, you have to test it from outside your lan.

zoomkat

To test from outside your LAN, you need to know your current router WAN IP address (see below), or use a dynamic IP service.

http://checkip.dyndns.com/
Google forum search: Use Google Search box in upper right side of this page.
Why I like my 2005 Rio Yellow Honda S2000  https://www.youtube.com/watch?v=pWjMvrkUqX0

Danny182


Quote
I tried to do the Virtual server on my router.


So what router do you have?


it's a Huawei BM2023w but I'm pretty sure that the firmware has been changed from my internet provider.


Many routers with Nat and port forwarding wont allow an external connection , if it appears to be coming from
inside the LAN.
So, to test that your port forwarding works, you have to test it from outside your lan.


I'm trying the connection from my ipad (not connected on the wifi)


To test from outside your LAN, you need to know your current router WAN IP address (see below), or use a dynamic IP service.

http://checkip.dyndns.com/


yes i wrote a part of my public ip adress on the first message.

AlxDroidDev

#7
Apr 24, 2013, 02:58 pm Last Edit: Apr 24, 2013, 03:00 pm by AlxDroidDev Reason: 1
Try using an external port different from TCP 80. Try, for example, TCP 81.

Then, externally, you'll access your Arduino like this:

http://<your.ext.ip.addr>:81


Another thing: port forward may not be the only required step. It may also be necessary to explicitely open that port in the router's firewall settings, so your router can respond to requests made to it. Then it will forward request to that port from the external (WAN) clients to another port (or the same) in the internal LAN server.
Some of my projects:
Shield for DS1337+, DS1624 and AT24C1024B (RTC, temp & mem): http://forum.arduino.cc/index.php/topic,126197.0.html
CHDK Camera remote shutter (BT, IR, USB): http://forum.arduino.cc/index.php?topic=295377.0

Danny182


Try using an external port different from TCP 80. Try, for example, TCP 81.

Then, externally, you'll access your Arduino like this:

http://<your.ext.ip.addr>:81


Another thing: port forward may not be the only required step. It may also be necessary to explicitely open that port in the router's firewall settings, so your router can respond to requests made to it. Then it will forward request to that port from the external (WAN) clients to another port (or the same) in the internal LAN server.


on the port 80 I can see the page of my router, if I set up the port 81. when i digit "publicip:81" it doesn't open any page.

don't know how to open the port on the firewall (I cannot disactivate it)
http://i38.tinypic.com/348ow8i.jpg

sonnyyu

To forward port  is  router or firewall OS specify, post at the router or firewall forum you will get better answer.
Meanwhile you might try to forward port 22 or 2222 (ssh port), if you do not ssh to router from internet. Since some ISP block most outbound port. but ISP need port 22 or 2222 for ssh to their equipment. This does the trick for one member at this forum.

Danny182

now it's working with the port 81.
thank you :)
I have now another problem, I'll open up a new topic :)

Go Up