The sockrename command renames a socket. This works for either UDP or TCP sockets.
sockrename <Old socket name> <New socket name>