Can you run your own server over your IP? If so, how can you make sure that you are not dozed?
Of course you can, and if not every idiot knows your IP, the probability of getting a DDOS is extremely low.
In addition, some routers already offer good protection, otherwise there are services that take care of something like this, this would be one of them:
https://www.servermania.com/ddos-protection.htm
You can protect yourself from a ddos with a vpn or with a 2nd IP