TCP Port Problem

ERROR: for creditcoin-gateway  Cannot start service gateway: Ports are not available: listen tcp 0.0.0.0:55555: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
ERROR: for gateway  Cannot start service gateway: Ports are not available: listen tcp 0.0.0.0:55555: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
ERROR: Encountered errors while bringing up the project.

One of my computer(Window 10) encountered this error. The system didnโ€™t use 55555 port. Another computer is working without this error. Both are in same network and processor.

Can anyone help me?

1 Like

Did you set your windows 10 defender firewall? Maybe adding a allow rule will be a solution.
Refer to ํฌ๋ ˆ๋”ง์ฝ”์ธ(CTC) ์ฑ„๊ตด ๋งค๋‰ด์–ผ ver 1.0 - [2] ๋ฐฉํ™”๋ฒฝ, ํฌํŠธํฌ์›Œ๋”ฉ, ์ฑ„๊ตด ๊ด€๋ จ ํŒŒ์ผ ์„ค์ • ํ›„ ์Šค๋ƒ…์ƒท ์ ์šฉ, ์ฑ„๊ตด, ์„œ๋ฒ„, ํด๋ผ์ด์–ธํŠธ ํŒŒ์ผ ๊ตฌ๋™ํ•˜๊ธฐ โ€” Steemit , โ€œ๋ฐฉํ™”๋ฒฝ์—์„œ ํฌํŠธ ์—ฌ๋Š” ๋ฐฉ๋ฒ•โ€ section.
Should you accustom to English, refer to the following doc.
Best practices for configuring Windows Defender Firewall - Windows security | Microsoft Docs
Anyway, are all your PCs under same wifi router? How did you port-forward them?

1 Like

Modify Server/docker-compose.yaml > port of gateway (55555 -> 55554)

./ccprocessorLinux.out tcp://validator:4004 tcp://gateway:55554 http://rest-api:8008'

 image: gluwa/creditcoin-gateway:latest
 container_name: creditcoin-gateway
 expose:
  - 55554
 ports:
  - 55554:55554

Thank you everyone.
The error disappeared after reboot. :slight_smile: