Resolved the issue, just incase someone encounters this in the future the code to fix it is
alias nserverip {
set %i1 $gettok($serverip,1,46)
set %i2 $gettok($serverip,2,46)
set %i3 $gettok($serverip,3,46)
set %i4 $gettok($serverip,4,46)
set %i %i4 $+ . $+ %i3 $+ . $+ %i2 $+ . $+ %i1
return %i
}
then use $nserverip