If you are not using a DHCP server to provide IP address to your computer, in order to connect to a network, you must assign static IP address. There is a DOS prompt command to set static IP address on your computer.
Read this post on corenetworkz.com