Lost connection after lost ethernet

i have a problem
several times a week i lost for 10 sec ethernet connection from my provider
then the music stops playing
than i must stop the player and then on play and it works again
is it possible to make something when connection lost it will connect automatic?
iam a noob in programming so dont ask me diffucult things :grin: