IP address removed automaticlly in windows 8.1

when I insert ip address by clicking Network connections---> and click on Ethernet properties and change properties of IPv4--> select "use the following ip" and put ip address but as I click "ok" ip address automatically removed and the option "obtain the ip automatically " selected.
when I use ipconfig command from command prompt it shows the ip I put. I can ping other devices like printer, other PC but cannot able to give print command from my PC.