The netmask is used to establish which part of an addres is the network address, which part is dedicated to the hosts and which one is broadcast.
You make a bit-by-bit and between ip address and subnet mask in order to individuate each part.
You need more information than ip address in order to get netmask.
Hope this helps.