ubuntu – How to create a new static ip address along with the dynamic one in Ubunt

The dynamic ip-address causes some problem since it changes frequently . I have to configure my application every time when I run it.I decided to use a static ip-address but soon I realized that I will be targeted by hackers if its always static.

Can I add a new static ip-address for this chatting application along with the old dynamic ip-address.

If so how can I do it?