enc28J60 e Arduino (10)

by luca
9 comments

Il breve tutorial di oggi prende spunto da una richiesta di Antonio: poter cambiare la porta su cui è in ascolto il webserver.

La modifica è molto semplice, basta impostare la variabile hisport:

In questo caso, sarà possibile collegarsi al webserver specificando la porta 90:

Related Posts

9 comments

Steve 16 dicembre 2012 - 00:13

Thanks very much for your excellent tutorials, Luca. They are extremely useful for a beginner like me.

I am trying to write sketches for an Arduino-compatible device called Nanode Gateway which has on-board enc28j60.

If you are looking for an idea to develop the theme of your tutorials 8, 9 & 10, please may I propose looking at controlling an Arduino output using a service like cosm.com or similar?

It seems like a natural progression in controlling the Arduino from the web. I am having great difficulty making my device work with such a service however. Thanks for your help and keep up the good work.

Reply
luca 16 dicembre 2012 - 12:44

Hi Steve,

that’s a good suggestion… I’ll work on it!
thanks

Reply
Paolo 23 aprile 2013 - 21:04

Complimenti per i tutorial.
Sto lavorando a uno sketch per mandare una mail tramite la 28j60, ma ho problemi ad aprire una sessione telnet. Sapresti darmi qualche consiglio?
Grazie

Reply
luca 24 aprile 2013 - 16:07

ciao Paolo,

farò di più… prossimo tutorial: inviare mail con Arduino 😉

Reply
Tristán Grimaux 2 ottobre 2013 - 19:33

I’m trying to set up a server that will replicate everything that comes from the Arduino serial port.

But “ether” is an http server, how do I set up plain tcp server? I was trying to get something like a telnet server, and connect it to the serial port of the Arduino.

My final goal is to create a physical “serial 2 telnet” to help me to remotely access a server via serial port when it has network problems.

Thanks!

Reply
Pawel 19 febbraio 2014 - 09:28

Ciao Luca,
hisport works perfect when accessing Arduino from browser. However when I try to send some data (using GET from your web temperature tutorial) to webpage it doesn’t work. Ofc there’s no response as well. How to use tcpSend, when hisport is changed? Thank you in advance for your help.

Reply
luca 19 febbraio 2014 - 21:19

Hi Pawel: are you trying to send data to a webserver/application that listens on a port different from 80? Give a look to this tutorial: my app is listening on port 1000.

Reply
Pawel 22 febbraio 2014 - 09:10

Hi Luca,
I’m trying to send data to php file saveTemp.php from your tutorial no 14. I guess it only listens on port 80, but I can’t use that one.. Response is not that important, but I wish to send data to port 80 from 8000 – defined by hisport (correct me if I’m wrong). Thanks

Reply
luca 2 marzo 2014 - 13:42

Hi Pawel,

yes you can change the “remote” tcp port with the hisport parameter

Reply

Leave a Comment

diciassette − 3 =