Arduino and Ethernet shield: access to internet

Good afternoon.
I'am trying to go on the internet via ethernet shield, but I'm facing problems.
This is the situation:

  • MacBook + arduino + ethernet shield
  • MacBook's IP 192.168.1.24
    . In Preference -> NETWORK, I manually assigned to Arduino an IP 92.168.1.150
  • Webserver sketch by playground, in which I set up:
    byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
    byte ip[] = { 192, 168, 1, 110 }
  • Internet connection via wifi

I thought it would be possible to access to the Internet typing http://192.168.1.110 and reading the values of the analog pins, as it happend in the case of the Ethernet line, in local. No access is possibile.
Could you help me please to find the mistake?
Thank you
Riccardo

I would not expect this to work as you are expecting your mac to act as a router and there is no router software on it. It would have to receive a message for 192.168.1.110 and know it was expected to pass it on. As it is it just ignores any message that is not 192.168.1.24.

Am I missing something but what is the Ethernet shield attached to?

Thank you and excuse me if the information was not complete. Eterhet shield was attached to my MacBook.
A little improvement:
Now I attached the arduino + ethernet shield to my router.
and I have access to http//192.168.1.110
But this is not possible outside my LAN. How have I to manage in order to see the page from outside, that's to say bu internet?
Riccardo

You need to set up Port Forwarding (in Italiano qui) on your router.

The setup for each brand of router is different than others, so the link above only has general information. You need to get the instructions that came with your router, or google "port forwarding name-of-your-router".

Thanks a lot. I will try this and keep you informed. :slight_smile:
Riccardo