No new connections when port 4555 is closed, only IPs from incoming connections in peers.dat [2 bugs] #82

Open
opened 2023-03-13 20:15:50 +00:00 by Hui-DE · 0 comments
Hui-DE commented 2023-03-13 20:15:50 +00:00 (Migrated from github.com)

If the port is closed, you won't get any new connections, no matter how long the wallet is running (even if you have previously established an active connection with "addnode").
Actually, IPs should be added that in turn have the port open, which allows outgoing connections.

Only incoming connections are added, which is of course only possible when the port is open.
When you close the wallet and restart it, you have more outgoing connections than before, because some of the (previously) incoming connections become outgoing connections if the IPs do not block the port

Another bug is that only the IPs of the incoming connections are stored in the peers.dat and thus reused. If you have closed your port 4555, an eMark.conf with addnode commands is required, otherwise you would have to do a console command after every restart.


[GERMAN]
Ist der Port geschlossen, bekommt man keine neuen Verbindungen, egal wie lange das Wallet läuft (auch dann nicht, wenn man vorher mit "addnode" eine aktive Verbindung hergestellt hat).
Es müssten eigentlich IPs hinzukommen, die ihrerseits den Port offen haben, was ausgehende Verbindungen ermöglichen würde.

Es werden ausschließlich eingehende Verbindungen hinzugefügt, was natürlich nur bei offenem Port möglich ist.
Erst man das Wallet schließt und neustartet, hat man mehr ausgehende Verbindungen als vorher, da einige der (vorher) eingehenden Verbindungen zu ausgehenden Verbindungen werden, wenn die betreffenden IPs den Port nicht blocken.

Ein weiterer Bug ist, dass nur die IPs der eingehenden Verbindungen in der peers.dat gespeichert werden und somit wiederverwendet werden. Hat man seinen Port 4555 geschlossen, ist eine eMark.conf mit addnode-Angaben erforderlich, sonst müsste man nach jedem Neustart einen Konsolenbefehl machen.

If the port is closed, you won't get any new connections, no matter how long the wallet is running (even if you have previously established an active connection with "addnode"). Actually, IPs should be added that in turn have the port open, which allows outgoing connections. **Only incoming connections** are added, which is of course only possible when the port is open. When you close the wallet and restart it, you have more outgoing connections than before, because some of the (previously) incoming connections become outgoing connections if the IPs do not block the port Another bug is that only the IPs of the incoming connections are stored in the peers.dat and thus reused. If you have closed your port 4555, an eMark.conf with addnode commands is required, otherwise you would have to do a console command after every restart. --------------------------------------------------------------------------------------------------------------------------------------- [GERMAN] Ist der Port geschlossen, bekommt man keine neuen Verbindungen, egal wie lange das Wallet läuft (auch dann nicht, wenn man vorher mit "addnode" eine aktive Verbindung hergestellt hat). Es müssten eigentlich IPs hinzukommen, die ihrerseits den Port offen haben, was ausgehende Verbindungen ermöglichen würde. Es werden **ausschließlich eingehende Verbindungen** hinzugefügt, was natürlich nur bei offenem Port möglich ist. Erst man das Wallet schließt und neustartet, hat man mehr ausgehende Verbindungen als vorher, da einige der (vorher) eingehenden Verbindungen zu ausgehenden Verbindungen werden, wenn die betreffenden IPs den Port nicht blocken. Ein weiterer Bug ist, dass nur die IPs der eingehenden Verbindungen in der peers.dat gespeichert werden und somit wiederverwendet werden. Hat man seinen Port 4555 geschlossen, ist eine eMark.conf mit addnode-Angaben erforderlich, sonst müsste man nach jedem Neustart einen Konsolenbefehl machen.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Core-Wallets/eMark#82
No description provided.