It isnt clear what you're doing, and I get the impression that you dont speak english natively, so I doubt we're going to get a better explanation of what you're trying to do. Given your question I can only assume your RaspberryPi's IP is 192.168.178.40, it is running bitcoind, and your trying to access the API on it from a computer somewhere on the internet (because you mention dyn-dns), and that there is a router in front of the RaspberryPi performing NAT. If you want any computer on the internet to be able to access the API
or if you only want a single computer on the internet with a static IP to be able to access it, then you'd put in the IP address of that computer rather than the RaspberryPi's IP address.
If I got it wrong, try rephrasing your question, because as I said, we don't know how your network is configured.