[GH-ISSUE #70] ERROR 0.0.0.0:1025: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. #44

Closed
opened 2026-03-15 12:16:31 +03:00 by kerem · 2 comments
Owner

Originally created by @isaacdarcilla on GitHub (Mar 22, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/70

I got this error when running mailpit command in PS (Windows).

PS C:\Users\Isaac> mailpit
INFO[2023/03/22 17:32:34] [smtp] starting on 0.0.0.0:1025
INFO[2023/03/22 17:32:34] [http] starting server on http://0.0.0.0:8025/
ERRO[2023/03/22 17:32:34] listen tcp 0.0.0.0:1025: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

How to resolve this?

Originally created by @isaacdarcilla on GitHub (Mar 22, 2023). Original GitHub issue: https://github.com/axllent/mailpit/issues/70 I got this error when running `mailpit` command in PS (Windows). ```bash PS C:\Users\Isaac> mailpit INFO[2023/03/22 17:32:34] [smtp] starting on 0.0.0.0:1025 INFO[2023/03/22 17:32:34] [http] starting server on http://0.0.0.0:8025/ ERRO[2023/03/22 17:32:34] listen tcp 0.0.0.0:1025: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. ``` How to resolve this?
kerem closed this issue 2026-03-15 12:16:36 +03:00
Author
Owner

@isaacdarcilla commented on GitHub (Mar 22, 2023):

I figure ports has been used, so:

PS C:\Users\Isaac> mailpit -s 0.0.0.0:1029 -l 0.0.0.0:8088

<!-- gh-comment-id:1479215058 --> @isaacdarcilla commented on GitHub (Mar 22, 2023): I figure ports has been used, so: > PS C:\Users\Isaac> mailpit -s 0.0.0.0:1029 -l 0.0.0.0:8088
Author
Owner

@axllent commented on GitHub (Mar 22, 2023):

Something else was/is running on your system in port 1025. If I had to take a guess you were/are running MailHog too (they use the same default ports). Alternatively you maybe already started another instance of Mailpit before which was still running at the time.

<!-- gh-comment-id:1479221197 --> @axllent commented on GitHub (Mar 22, 2023): Something else was/is running on your system in port 1025. If I had to take a guess you were/are running MailHog too (they use the same default ports). Alternatively you maybe already started another instance of Mailpit before which was still running at the time.
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
starred/mailpit#44
No description provided.