Do you have a router for internet connection. If so, check out the settings as normally routers assign ip-numbers.
There is more than one way to make a working network, tcp/ip is at the moment the mainstream (99.9%).
Also the netmasking is important, make them 255.255.255.0 for both...