Well, to avoid writing this again, have a look at
starting with chapter
4.2.1 Assign a Static IP Address to Your OSMC Device
to get the idea how to do that.