Since I use to test on more then one location I've several servers to choose between. So I made a batch file connecting to any existing router. Some DOS commands was new for me but may be obvious for others. But a
Google search IS nice, isn't it.

Of course you've to edit the pathways to your own needs.
Code:
@Echo off
echo Check for a Router...........
for /f "tokens=1,2 delims=:" %%i in ('ipconfig') do If "%%i"==" Default Gateway . . . . . . . . . " (If NOT "%%j"==" " (echo Found: %%i :%%j: & SET ip=%%j & GOTO HIT))
GOTO NOIP
:HIT
::Remove spaces
set ip=%ip: =%
::Remove none leading and one trailing char
SET ip=%ip:~0,-1%
::echo ip is:%ip%
python C:\Users\admin\Documents\Python\VDRplayer-master\VDRplayer.py C:\Users\admin\Documents\Python\VDRplayer-master\Hakefjord.txt %ip%255 10110 0.1 UDP
goto END
:NOIP
echo Failure...No known Router alive???
pause
:END