[Tutor] Need help!

Adam Jensen hanzer at riseup.net
Sat Dec 13 21:10:07 CET 2014

On Fri, 12 Dec 2014 07:46:05 -0500
Jagannath Ramanan <jagannath.ramanan at gmail.com> wrote:

> My name is jag. I need little bit of help understanding something. I have a
> vncserver running at the background in redhat. My client is lubuntu where
> im using python.
> For some reason the communication is only possible between them is to send
> custom TCP/IP messages. Im not a hardcore developers. I can do scripts and
> i have used gtk python for front ends etc.
> *The TCP /IP message length is:*
> TCP/IP: 37 bytes of message + 16 bytes of header = 53 bytes Raw Serial: 37
> bytes message + 16 bytes of header + 2 bytes of trailer = 55 bytes
> I have no idea how i would code something like that in python to make it
> talk to the server.

When you hear hoofbeats, think of horses not zebras.

It's possible you only need to open a TCP port in the RedHat machine's firewall:

/sbin/iptables -I INPUT 1 -p tcp -d ${ip_of_lubuntu} --dport ${port} -j ACCEPT

For experimentation and development, it might be best to select a port number within the range 49152–65535.


More information about the Tutor mailing list