martin@martin:~$ telnet ip.vancl.eu 1234
Trying ip.vancl.eu...
Connected to ip.vancl.eu.
Escape character is '^]'.
77.78.90.200
Connection closed by foreign host.
martin@martin:~$
Spusteni serveru/kompilace
Spusteni z pythonu
$ python getip.py
Kompilace
$ cython --embed getip.py
$ gcc getip.c -I/usr/include/python2.7 -lpython2.7 -o getip
$ strip getip
$ du -sh getip
59K getip
$ file getip
getip: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=12166ba5208e49ff66eb73820025b860baedc78b, stripped
$
$ ./getip
Using TCP port 1234.