Maxim Olivier-Adlhoch: >using 'localhost' or '127.0.0.1' always works, using my actual machine's ip or its hostname does not!! What is the server socket binding to? "Connection refused" normally means there is no server listening for connections on the specified IP/port-combination. -- René Pijlman