Page 1 of 1

Change Port on Atom Socket Listen

Posted: Sunday 22 December, 2013 - 17:56
by Marcson
Hi Incontrol Community,

I'd like to use the Atom "Socket Listen", but the Port Change won't work.
If I drag'n'drop a Socket Listen and a Socket Send Atom into my Model and start using the Testcenter, everything works like a charm.
But as I change the Listening Port to something else than 7122 it won't work anymore. Of course, Sending Port has been changed likewise.
Firewall should not be an issue, checked that, all Ports are allowed.
An interesting observation I made is that if I change the listening Port to something else and keep the sending Port at 7122 it keeps working until I save und reload the model.

Thanks for your help
Marcson

Re: Change Port on Atom Socket Listen

Posted: Tuesday 31 December, 2013 - 13:40
by MatthijsJongboer
Hi Marcson,

You are right. The port is set only on creation of the atom (so at load). You can modify it using:

Code: Select all

Do(
 SocketStopListen(c),
 SocketStartListen(c, TextAtt(1, c))
)
The atom reference c can also be AnimAtom if you have selected the atom in your model layout.
We will modify the atom that this will happen on reset so port changes are included.

Gr. Matthijs