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

Linux support #40

Closed ramizdemiurge closed 5 years ago

ramizdemiurge commented 5 years ago

I have this: java.io.IOException: Cannot run program "ipconfig": error=2, No such file or directory

What about linux support? :smiley:

offbynull commented 5 years ago

Hey,

This is a commonly reported thing. Linux is supported, but the executables that get run aren't filtered by operating system. The code will attempt to run every command regardless of operating system. I chose to do this so that I could have the widest base of support: Linux, Mac, BSD, Unix/Linux-like, Windows variants, etc...

In your case, you'll get an error for ipconfig because you're running Linux. For Windows users, they'll see an error for iFconfig because they're running Windows.

These errors aren't something you need to worry about. No OS supports all the commands. You will always see an error for some executable not being found.

On Sat, Oct 20, 2018, 8:03 PM Ramiz A., notifications@github.com wrote:

I have this: java.io.IOException: Cannot run program "ipconfig": error=2, No such file or directory

What about linux support? 😃

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/offbynull/portmapper/issues/40, or mute the thread https://github.com/notifications/unsubscribe-auth/AGD4IrO5I88FW604Mf7z09M2IN6AZfTsks5um7m6gaJpZM4XyMkT .