If the log at the bottom of v2rayN reports "port occupied" and "bind: address already in use", or the kernel cannot be started, it is probably because the local port it wants to use is occupied by another program. There are only two solutions: either free up the port, or let v2rayN change a port.
1What ports does v2rayN use by default?
- 10808: Local SOCKS proxy port.
- 10809: Local HTTP proxy port.
These two ports are used by other software on this machine to connect to the proxy. If other proxy software (Clash, SSR, etc.) has been opened before, or v2rayN did not exit normally last time and there are residual processes, the port may be occupied.
2Find out who is occupying the port
Open Command Prompt or PowerShell and enter:
netstat -ano | findstr 10808——The last column is the PID of the process occupying the port.- After getting the PID,
tasklist | findstr that PID, you can see which program it is.
If you find another agent software or residual v2rayN / xray process, go to the task manager to end it, and then restart v2rayN.
3Change a port for v2rayN
If you still use the program that occupies the port and cannot close it, let v2rayN avoid it:
- Menu "Parameter Settings" → Find the "Local Listening Port" (SOCKS port) column.
- put
10808Change it to an unoccupied port, such as10818;The HTTP port is changed accordingly to10819. - Confirm to save and "restart service".
After changing the port, the system agent must also follow suit: If you filled it out manually in the browser or other software before 127.0.0.1:10808, after changing the port, these places must be changed to the new port simultaneously, otherwise they will still be connected to the old port. If you use "Automatically configure system proxy", v2rayN will automatically follow it and there is no need to change it manually.
4Easily avoid further conflicts
- Don't open multiple proxy software at the same time: Clash, SSR, and v2rayN grab the same batch of ports, which is the most conflict-hit area. Only use whichever one you use.
- Exit v2rayN normally: Right-click the tray icon and "Exit" instead of directly ending the process to prevent residual processes from occupying the port.
After the port is freed up and the kernel can start normally, if you still cannot access the Internet, continue reading. Unable to access the Internet to troubleshoot.