Hello, all I am trying to establish peer to peer (UDP) communication via firefox extension. I have python program that works on command line. I built a xpcom component using it. But surprisingly I could only receive message through it from command line python program.
We tried following ( All working on localhost ) :
Firefox XPCOM component as sender --> firefox XPCOM component as receiver -- did not work
Python command line as sender --> firefox xpcom component as receiver -- Worked
firefox xpcom component as sender --> Python command line as receiver -- did not work
Python commandline as sender --> python command line as receiver -- Worked
When we Observed packets using wireshark we got some differences --
Firefox xpcom to python command line AND firefox xpcom to firefox xpcom (which did not worked) have packet record as follows
Such type of packets(source port marked as non number) produced by
Winsock(C++)
XPCOM component
C#
...UDP Source port: timbuktu-srv2 Destination port: 30000
python command line to python command line AND Python command line to XPCOM (which did worked) have packet record as follows
... UDP Source port: 30000 Destination port: 30000
I do not know much about the networking, but the record marked ..Source port: timbuktu-srv2..
fails to reach its destination .
I have been trying p2p communication using Python, C++ (Winsock) , C# but could only succeeded with Python only difference I could observe is such type of specific record with python ..
Can some networking gurus flash light over it ?