Hello,
Thank you for your question.
You want to change server ip and port ? Could you specify which device you are using?
If you have using FMB device following will help you out:
Domain parameter id:2004
Port parameter id: 2005
Command structure (if no password or log in set use two spaces in beginning):
<Login><Password>setparam 2004:server.ip
<Login><Password>setparam 2005:12345
Or you can write this in one command (max 160 chars):
<Login><Password>setparam 2004:123.123.123.123;2005:12345
Let me know if you will have more questions.
More information about command on wiki page: https://wiki.teltonika.lt/view/FMB_setparam
More information about parameter on wiki page: https://wiki.teltonika.lt/view/FMB120_Parameter_list
Best regards.