How to port forward ENC28J60?

how do you port forward the enc28j60 ethernet module?

how do you port forward the enc28j60 ethernet module?

Do you mean port forward from your router to an ENC28J60 on your local network so you can access it from the internet or do something else on the ENC28J60 itself? What networking outcome are you trying to achieve?

davidrh:
Do you mean port forward from your router to an ENC28J60 on your local network so you can access it from the internet or do something else on the ENC28J60 itself? What networking outcome are you trying to achieve?

i want to use it over the internet. not only on LAN.

Port forwarding is something you do on your router, not the thing you want to connect to. You have to tell your router that any incoming packets on some particular port need to go to some particular address on your LAN. Google the name of your router and "port forwarding" and you will find resources to help you accomplish that.

Beware with port forwarding that you are opening up that port on your router to everybody on the internet. Don't think that just because you don't tell anybody that nobody will find it, as you are probably getting port scanned now but your router protects the rest of your network.

Depending on how your router works, you may also need to assign a static IP address to your ENC28J60 in the DHCP configuration so that it doesn't change IP addresses after you haven't used it for a while.