[GH-ISSUE #3303] Failure in running xray-core: exit status 0xffffffff after restarting xray on Windows #2241

Closed
opened 2026-10-31 20:24:10 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @fgsfds on GitHub (Aug 3, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3303

Describe the bug

Pressing Restart Xray on Windows gives 0xffffffff error because the running xray process is not terminated prior to starting the new one

How to repeat the problem?

  1. Open Xray Configs page
  2. Press Restart Xray

Expected action

Running Xray process stops, new one starts

Received action

Current xray process still running, new process gives the following error:

2025/08/03 23:10:14 ERROR - XRAY: Failed to start: app/proxyman/inbound: failed to listen TCP on 62789 > transport/internet: failed to listen on address: 127.0.0.1:62789 > transport/internet/tcp: failed to listen TCP on 127.0.0.1:62789 > listen tcp 127.0.0.1:62789: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2025/08/03 23:10:14 ERROR - Failure in running xray-core: exit status 0xffffffff

3x-ui Version

2.6.3

Xray-core Version

25.6.8

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @fgsfds on GitHub (Aug 3, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3303 ### Describe the bug Pressing Restart Xray on Windows gives 0xffffffff error because the running xray process is not terminated prior to starting the new one ### How to repeat the problem? 1. Open Xray Configs page 2. Press Restart Xray ### Expected action Running Xray process stops, new one starts ### Received action Current xray process still running, new process gives the following error: ``` 2025/08/03 23:10:14 ERROR - XRAY: Failed to start: app/proxyman/inbound: failed to listen TCP on 62789 > transport/internet: failed to listen on address: 127.0.0.1:62789 > transport/internet/tcp: failed to listen TCP on 127.0.0.1:62789 > listen tcp 127.0.0.1:62789: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. 2025/08/03 23:10:14 ERROR - Failure in running xray-core: exit status 0xffffffff ``` ### 3x-ui Version 2.6.3 ### Xray-core Version 25.6.8 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:24:10 +07:00
  • closed this issue
  • added the
    bug
    label
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
MHSanaei/3x-ui#2241
No description provided.