Can't make pyhello.py example to bind on ivydefault bus but it works when forcing bus to 0.0.0.0:2010
Problem
From the examples folder,
I've first launched python ivyprobe.py
It returned:
Broadcasting on ivydefault
Changes in applications' bindings are hidden
Go ahead! (type .help for help on commands)
Then I've launched python pyhello.py
It returned:
pyhello: Ivy will broadcast on ivydefault
pyhello: pyhello send a tick
pyhello: IvyTimerRepeatAfter id is 4529047200
pyhello: pyhello doing IvyMainLoop
pyhello: pyhello send a tick
pyhello: pyhello send a tick
...
But pyhello wasn't seen by ivyprobe (I tried the .who command which returned [])
For info, lsof -Pn -i4 command returned:
python3.1 5103 Me 3u IPv4 0x1053c3c5abaeb5e3 0t0 TCP *:50399 (LISTEN)
python3.1 5103 Me 4u IPv4 0x1053c3c5ad15760b 0t0 UDP *:2010
python3.1 5159 Me 3u IPv4 0x1053c3c5c6366b23 0t0 TCP *:50403 (LISTEN)
python3.1 5159 Me 4u IPv4 0x1053c3c5ad1532ab 0t0 UDP *:2010
Solution
However, I've managed to connect pyhello using python pyhello.py -b 0.0.0.0:2010
It returned:
pyhello: Ivy application 127.0.0.1:50440 (pyivyprobe) was connected
pyhello: currents Ivy application are [['pyivyprobe']]
pyhello: Received from 127.0.0.1:50440 (pyivyprobe): [[pyivyprobe is ready]]
And ivyprobe returned:
Ivy application 127.0.0.1:50439 (pyhello) has connected
Ivy applications currently on the bus: pyhello
In that case lsof -Pn -i4 command returned:
python3.1 5264 Robotron 3u IPv4 0x1053c3c5c6368b33 0t0 TCP *:50444 (LISTEN)
python3.1 5264 Robotron 4u IPv4 0x1053c3c5ad1538cb 0t0 UDP *:2010
python3.1 5264 Robotron 5u IPv4 0x1053c3c5abae6063 0t0 TCP 127.0.0.1:50446->127.0.0.1:50445 (ESTABLISHED)
python3.1 5282 Robotron 3u IPv4 0x1053c3c5b73ca5d3 0t0 TCP *:50445 (LISTEN)
python3.1 5282 Robotron 4u IPv4 0x1053c3c5ad156cdb 0t0 UDP *:2010
python3.1 5282 Robotron 5u IPv4 0x1053c3c5abaeb5e3 0t0 TCP 127.0.0.1:50445->127.0.0.1:50446 (ESTABLISHED)
Question
So, my question is : why I need to force ivybus selection ? I'm working on MacOS Monterey, Running Python 3.10.0 with ivy-python 3.3 release