There is a router doing NAT between my MediaTomb server and my media player. To render a media, the player has to connect to a URL MediaTomb gives. This URL contains the server IP which is a private IP, unknown to my player which knows only my router IP.
I made a small patch that adds a configuration option "virtualIp". This value is then used to replace the real ip in all the URLs MediaTomb announce.