If no port is specified, try to guess it from wildcards

Fix #197