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.

Sponsored Looking for a stable node service for v2rayN? Selected high-speed lines · Multiple regions available · Support subscription import View Recommended Nodes

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.

Use commands to locate port occupancy
command line function Example of results steps command Where to look 1. Check port occupancy netstat -ano | findstr 10808 Last column PID 2. Check the process name tasklist | findstr 12345 Corresponding program 3. End the process Task Manager ends this PID Release port Or: change port Parameter settings→Local listening port Change to 10818 etc. Position first reprocess Restart service
Use netstat to find the PID that occupies the port, and then decide whether to end it or change the port for v2rayN.

3Change a port for v2rayN

If you still use the program that occupies the port and cannot close it, let v2rayN avoid it:

  1. Menu "Parameter Settings" → Find the "Local Listening Port" (SOCKS port) column.
  2. put 10808 Change it to an unoccupied port, such as 10818;The HTTP port is changed accordingly to 10819.
  3. 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.

Download v2rayN (Windows version)v7.22.6 · Support x64 / ARM64 · Open source and free