- completely remove connection counter
# was just copyied but not used anywhere
- convert port argument to integer explicitely to make socket.connect() work
# connect() expected port parameter to be an integer