offbynull / portmapper

Java library that maps ports on NAT-enabled routers (supported protocols: UPnP-IGD/NAT-PMP/PCP).
Apache License 2.0
88 stars 17 forks source link

PortMapperFactory.discover(networkBus, processBus) sometimes returning empty list #32

Closed davidhewitt128 closed 7 years ago

davidhewitt128 commented 7 years ago

It spends a long time in the method PortMapperFactory.discover(networkBus, processBus), maybe a minute. Is this normal?

Sometimes returns an empty list but when it doesn't the example you've provided works fine. Using the web interface of my router shows that UPnP is been mapped correctly.

Maybe it's the network configuration I have. Thanks.

offbynull commented 7 years ago

Can you provide logs for the cases where it provides an empty list vs a non-empty list?

offbynull commented 7 years ago

Also, that amount of time could be normal. It could be trying requests that failed for whatever reason or otherwise probing your network for routers.