blizzless / blizzless-diiis

Fully-functional open-source server implementation for Diablo 3
GNU Affero General Public License v3.0
1.36k stars 352 forks source link

[community] An unhandled exception occured at initialization. #155

Closed 0xD8C4A475 closed 1 year ago

0xD8C4A475 commented 1 year ago

Hi all!

Branch: community OS: Windows 10 Error message after start:

An unhandled exception occured at initialization. Please report this to the developers.
System.Net.Sockets.SocketException: A szoftvercsatornához a hozzáférési engedélyeket megsértő módon történt hozzáférés.
  at void System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, bool disconnectOnFailure, string callerName)
  at void System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
  at void System.Net.Sockets.Socket.Bind(EndPoint localEP)
  at void DotNetty.Transport.Channels.Sockets.TcpServerSocketChannel.DoBind(EndPoint localAddress)
  at Task DotNetty.Transport.Channels.AbstractChannel.AbstractUnsafe.BindAsync(EndPoint localAddress)
  at async Task<IChannel> DotNetty.Transport.Bootstrapping.AbstractBootstrap`2.DoBindAsync(EndPoint localAddress)
  at async Task DiIiS_NA.Program.StartAsync() in D:\Games\d3server_community\blizzless-diiis\src\DiIiS-NA\Program.cs:239

1 seconds after successfully start, opened 80, 1119, and some 2106(?) and bamm.

Defender off, firewall off, run as admin publish/config.ini original, ip127.0.0.1/other interface ip, nat/public true/false all combination.

Thank you!

0xD8C4A475 commented 1 year ago

(original) publish/config.ini:

;
; # This is a template configuration file which can be modified as desired.
;
; # Community branch (recommended): https://github.com/blizzless/blizzless-diiis/tree/community
; # test-stable branch: https://github.com/blizzless/blizzless-diiis/
; # Master branch: https://github.com/blizzless/blizzless-diiis/tree/master
;

; Settings for Bnet
[Battle-Server]
Enabled = true
BindIP = 127.0.0.1
WebPort = 9800
Port = 1119
MotdEnabled = true
Motd = Welcome to Blizzless D3!

; ------------------------
; [IWServer]
; IWServer = false

; ------------------------
; REST services for login (and others)
[REST]
IP = 127.0.0.1
Public = false
PublicIP = 127.0.0.1
PORT = 80

; ------------------------
; Game server options and game-mods.
;
[Game-Server]
Enabled = true
CoreActive = true
BindIP = 127.0.0.1
WebPort = 9001
Port = 1345
BindIPv6 = ::1
DRLGemu = true

; Modding of game (please check https://github.com/blizzless/blizzless-diiis/blob/community/docs/game-world-settings.md)
;

; rates
RateExp = 1
RateMoney = 1
RateDrop = 1
RateChangeDrop = 1
RateMonsterHP = 1
RateMonsterDMG = 1
; items
ChanceHighQualityUnidentified = 30
ChanceNormalUnidentified = 5
; bosses
BossHealthMultiplier = 6
BossDamageMultiplier = 3
; nephalem
NephalemRiftProgressMultiplier = 1
; health
HealthPotionRestorePercentage = 60
HealthPotionCooldown = 30
ResurrectionCharges = 3
; waypoints
UnlockAllWaypoints = false
; player attribute modifier
StrengthMultiplier = 1
StrengthParagonMultiplier = 1
DexterityMultiplier = 1
DexterityParagonMultiplier = 1
IntelligenceMultiplier = 1
IntelligenceParagonMultiplier = 1
VitalityMultiplier = 1
VitalityParagonMultiplier = 1
; quests
AutoSaveQuests = false
; minimap
ForceMinimapVisibility = false

; ------------------------
; Network address translation
;
[NAT]
Enabled = False
; use your public IP
PublicIP = 127.0.0.1

; ------------------------
; Where the outputs should be.
; Best for visualization (default): AnsiLog (target: Ansi)
; Best for debugging: ConsoleLog (target: console)
; Best for packet analysis: PacketLog (target: file)
;
[AnsiLog]
Enabled = true
Target = Ansi
IncludeTimeStamps = true
MinimumLevel = Debug
MaximumLevel = Fatal

[ConsoleLog]
Enabled = false
Target = Console
IncludeTimeStamps = true
MinimumLevel = Debug
MaximumLevel = PacketDump

[PacketLog]
Enabled = true
Target = file
FileName = packet.log
IncludeTimeStamps = true
MinimumLevel = Debug
MaximumLevel = PacketDump

netstats:

D:\Games\d3server_community\blizzless-diiis\publish>netstat -aon | findstr 9001

D:\Games\d3server_community\blizzless-diiis\publish>netstat -aon | findstr ":80"
  TCP    0.0.0.0:8000           0.0.0.0:0              LISTENING       3160
iamdroppy commented 1 year ago

Might be due to the lack of permissions to bind to this port.

ChuckDDB commented 1 year ago

Change the password for the postgres connection string in both database.Accounts.config and database.Worlds.config to postgres and recompile. ** Or change the password in the docker-compose.yml to 131275 and recompose docker

iamdroppy commented 1 year ago

oops! my mistake gentlement. I'll be fixing it. Cheers.