for listening socket different flags are used, detection is based on 0.0.0.0 This will change when supporting multiple binding addresses.
Bug 173, 174, 175, 176 and 177