My setup:
1. OS X 10.5.8, computer is internet sharing my airport connection.
2. WebServer sketch seems to work fine using ip of 192.168.2.3.
3. Ping to 192.168.2.3 seems to work fine.
4. Yet WebClient connection fails after about 1 minute of "connecting..." I'm using the standard WebClient sketch with the following declarations:
Code:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 2, 3 };
byte subnet[] = { 255, 255, 0, 0 };
byte gateway[] = { 192, 168, 2, 1 };
byte server[] = { 64, 233, 187, 99 }; // Google
FYI, ifconfig en0 produced:byte ip[] = { 192, 168, 2, 3 };
byte subnet[] = { 255, 255, 0, 0 };
byte gateway[] = { 192, 168, 2, 1 };
byte server[] = { 64, 233, 187, 99 }; // Google
Quote
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
inet6 fe80::21f:5bff:fef3:7a1f%en0 prefixlen 64 scopeid 0x4
inet 169.254.25.48 netmask 0xffff0000 broadcast 169.254.255.255
ether 00:1f:5b:f3:7a:1f
media: autoselect (100baseTX <full-duplex>) status: active...
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
inet6 fe80::21f:5bff:fef3:7a1f%en0 prefixlen 64 scopeid 0x4
inet 169.254.25.48 netmask 0xffff0000 broadcast 169.254.255.255
ether 00:1f:5b:f3:7a:1f
media: autoselect (100baseTX <full-duplex>) status: active...
Any suggestions? Many thanks!