Describe the bug
Reflex fails to start up on systems without IPv6 support.
Specifics (please complete the following information):
Additional context
The problem occurs during the port checks inside reflex/utils/process.py in the is_process_on_port() function.
It check that if either IPv4 or the IPv6 ports are taken, then the port is considered taken and the app fails to start both the frontend and the backend server.
The on systems without IPv6 that check always results in an OSError: [Errno 97] Address family not supported by protocol which makes the app think that all ports are taken.
We already have _is_ipv4_supported() and _is_ipv6_supported() inreflex/utils/net.py - those should be (adjusted, if needed, and) used before checking if the ports are occupied.
Describe the bug
Reflex fails to start up on systems without IPv6 support.
Specifics (please complete the following information):
Additional context
The problem occurs during the port checks inside
reflex/utils/process.pyin theis_process_on_port()function.It check that if either IPv4 or the IPv6 ports are taken, then the port is considered taken and the app fails to start both the frontend and the backend server.
The on systems without IPv6 that check always results in an
OSError: [Errno 97] Address family not supported by protocolwhich makes the app think that all ports are taken.We already have
_is_ipv4_supported()and_is_ipv6_supported()inreflex/utils/net.py- those should be (adjusted, if needed, and) used before checking if the ports are occupied.