To play Neverwinter Nights online, you will require a unique CD key. You can find it in your account on the website: https://www.gog.com/account
Once logged it, select the game from library, click MORE →SERIAL KEYS.
Run afterwards the Key Changer by selecting the game in GOG GALAXY
→slider symbol in the top right
Or run Serialtool.exe in the game's directory.
With the changed CD-key, premium modules (like Kingmaker) will stop working as they do use the default key for validation. To get around this, acess your account page , select the game from the library, and find the premium modules re-installer, under the Game Goodies content. Download this file and install it. The modules will now be adapted to the new CD keys.
Please note that Neverwinter Nights 1 and 2 master servers are no longer functional. You should use the Direct Connect option to log onto your preferred server via IP address.
The current list of active servers can be found here: http://www.nwnlist.com/