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

It wont work #36

Open finlaywashere opened 6 years ago

finlaywashere commented 6 years ago

Im using the example code on java 8 using a windows 10 laptop and aside from the errors about not being able to find the commands which I know are ok it cannot find any devices, my router has UPnP enabled

offbynull commented 6 years ago

Are you sure you have UPnP enabled?

Can you post full logs with debug/trace enabled? Do you see any network traffic showing up in the logs?

finlaywashere commented 6 years ago

I'm sure UPnP is enabled, but it will be a while until I can get back to my computer. Also how do I enable debug and trace in the logs?

offbynull commented 6 years ago

It depends on the logging framework you're using in your application. Do you know what it is? For example log4j, logback, etc..

jredfox commented 6 years ago

make sure NAT-PMP is enabled on your router as well as UPNP or this will fail not sure if UPNP needs to also be enabled

finlaywashere commented 6 years ago

It's on too

stokito commented 2 years ago

@finlaywashere you may also need to open 5350 and 5351in firewall