connected tcp server to viewer.