Hi, i'm new in arduino's WORLD. I create a web switch with a enc28j60 but i don't know the reason when i try to control the board over the internet, it doesn't work. I only see the ''web page'' and can't control any led from the 3 i set. In lan it works perfectly !

// please modify the following two lines. mac and ip have to be unique// in your local area network. You can not have the same numbers in// two devices:static uint8_t mymac[6] = {0x54,0x55,0x58,0x10,0x00,0x24}; static uint8_t myip[4] = {192,168,1,15};static char baseurl[]="http://192.168.1.15/";static uint16_t mywwwport =85; // listen port for tcp/www (max range 1-254)

I use ENC28J60 the cheapest version of a real ethernet shield w5100 haha!

I try 192.168.1.15:85 but it do not work

The sketch I posted is only the ''ethernet'' part, the rest is to control ledpins. If you realy want i can show all my sketch.

192.168.1.15 is not an address that is routable on the internet. Your router/firewall will have a different IP address when seen from the outside internet. Thus, any form that references that address simply won't work from the outside.Luckily, HTTP already defaults the base URL to whatever you used to get to the form in the first place. Thus, you can try changing the baseurl to simply "/" and it might have some chance of working, if I read that sketch right.That is -- assuming you can get to the page in the first place, then posting the form should work if you set the baseurl to "/" rather than a specific protocol and address.

// please modify the following two lines. mac and ip have to be unique// in your local area network. You can not have the same numbers in// two devices:static uint8_t mymac[6] = {0x54,0x55,0x58,0x10,0x00,0x24}; static uint8_t myip[4] = {192,168,1,15};static char baseurl[]="http://192.168.1.15/";static uint16_t mywwwport =85; // listen port for tcp/www (max range 1-254)

/*plen will ne unequal to zero if there is a valid packet (without crc error) */ if(plen!=0){ // arp is broadcast if unknown but a host may also verify the mac address by sending it to a unicast address. if(es.ES_eth_type_is_arp_and_my_ip(buf,plen)){ es.ES_make_arp_answer_from_request(buf); return; }

// please modify the following two lines. mac and ip have to be unique// in your local area network. You can not have the same numbers in// two devices:static uint8_t mymac[6] = {0x54,0x55,0x58,0x10,0x00,0x24}; static uint8_t myip[4] = {192,168,1,15};static char baseurl[]="/";static uint16_t mywwwport =85; // listen port for tcp/www (max range 1-254)