Set socket url to dynamic.