Well I suggest you to set up network. IP address and DNS if needed. If you are only at home and have connected two computers, you can use /etc/hosts for dns resolution. Then you can ping your host. Man ping.
ping host or ping IP
http://docs.sun.com/app/docs/doc/816-4554/6maoq01lb?a=view