- Joined
- Jan 8, 2011
- Messages
- 11
- Reaction score
- 0
Just curious why I haven't seen anyone posted this because it's probably the simplest solution for server owners with dynamic IP address.
All you have to do is copy the code and save it as .bat.
Remember to change the variables to match your server configurations.
Happy setting up your server!
Code:
[USER=2000189605]Echo[/USER] off
cls
for /f "tokens=1,2 delims=[]" %%A in ('ping o2jam.no-ip.org ^| find "Pinging"') do set ipaddress=%%B
set web=15000
set game=15010
set exe=otwo.exe
%exe% 1 %ipaddress% o2jam/patch %ipaddress%:%web% 1 1 1 1 1 1 1 1 %ipaddress% %game% %ipaddress% %game% %ipaddress% %game% %ipaddress% %game% %ipaddress% %game% %ipaddress% %game% %ipaddress% %game% %ipaddress% %game%
All you have to do is copy the code and save it as .bat.
Remember to change the variables to match your server configurations.
Happy setting up your server!