socket connect no route to host

I am running on Sequoia 15.1.1 on M4 MacBook Pro. I am writing in C/C++ with xcode 16.1


My program worked on an x86 iMac with Ventura. Now I get an error on ::connect "no route to host"


ping succeeds as well as traceroute. I have tried both wifi and wired ethernet connections.


I have my app allowed local network access in system settings privacy & security local network.


my ip/subnet is correct for the device I am trying to access. The connection I am trying uses port 1324.


I can launch windows 11 under parallels and connect successfully with our software "RMCTools" though it uses a different port.


I have turned off the firewall. I have a VPN connection and I have tried both with the VPN on and off.


Any other thoughts to try?


Thank you

MacBook Pro 16″, macOS 15.1

Posted on Nov 28, 2024 4:37 AM

Reply
7 replies

Nov 28, 2024 10:45 AM in response to TGessner

TGessner wrote:

Thanx, I created a macos VM and the program worked fine. So apparently it is something with my os install. I'm wondering if the number of network interfaces is an issue?

A symptom perhaps. But to be clear, it has nothing to do with your OS install. It's some 3rd party system modification that you've installed on the host, but not the guest. It could even be Parallels itself, as that would definitely quality. But you did say "our software", which implies some corporate entity, which implies mandatory installation of some of the most problematic, buggy software ever known.

Nov 28, 2024 8:28 AM in response to TGessner

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384

options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>

inet 127.0.0.1 netmask 0xff000000

inet6 ::1 prefixlen 128 

inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 

nd6 options=201<PERFORMNUD,DAD>


gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280


stf0: flags=0<> mtu 1280


anpi1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=400<CHANNEL_IO>

ether 72:4c:0f:ee:11:b9

media: none

status: inactive


anpi2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=400<CHANNEL_IO>

ether 72:4c:0f:ee:11:ba

media: none

status: inactive


anpi0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=400<CHANNEL_IO>

ether 72:4c:0f:ee:11:b8

media: none

status: inactive


en4: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=400<CHANNEL_IO>

ether 72:4c:0f:ee:11:98

nd6 options=201<PERFORMNUD,DAD>

media: none

status: inactive


en5: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=400<CHANNEL_IO>

ether 72:4c:0f:ee:11:99

nd6 options=201<PERFORMNUD,DAD>

media: none

status: inactive


en6: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=400<CHANNEL_IO>

ether 72:4c:0f:ee:11:9a

nd6 options=201<PERFORMNUD,DAD>

media: none

status: inactive


en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500

options=460<TSO4,TSO6,CHANNEL_IO>

ether 36:47:1e:21:55:80

media: autoselect <full-duplex>

status: inactive


en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500

options=460<TSO4,TSO6,CHANNEL_IO>

ether 36:47:1e:21:55:84

media: autoselect <full-duplex>

status: inactive


en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500

options=460<TSO4,TSO6,CHANNEL_IO>

ether 36:47:1e:21:55:88

media: autoselect <full-duplex>

status: inactive


ap1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>

ether ee:f2:a8:1b:57:89

nd6 options=201<PERFORMNUD,DAD>

media: autoselect (none)

status: inactive


en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>

ether ea:3e:aa:03:54:e0

inet6 fe80::18f8:b24b:27c1:73e3%en0 prefixlen 64 secured scopeid 0x10 

inet 192.168.30.172 netmask 0xffffff00 broadcast 192.168.30.255

inet6 2a00:23c8:7523:9b01:1043:cf42:5d4b:c5a8 prefixlen 64 autoconf secured 

inet6 2a00:23c8:7523:9b01:c4da:625a:f691:4c7b prefixlen 64 autoconf temporary 

nd6 options=201<PERFORMNUD,DAD>

media: autoselect

status: active


awdl0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>

ether 56:26:3c:af:91:cf

inet6 fe80::5426:3cff:feaf:91cf%awdl0 prefixlen 64 scopeid 0x11 

nd6 options=201<PERFORMNUD,DAD>

media: autoselect

status: active



Nov 28, 2024 8:31 AM in response to TGessner

llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=400<CHANNEL_IO>

ether 56:26:3c:af:91:cf

inet6 fe80::5426:3cff:feaf:91cf%llw0 prefixlen 64 scopeid 0x12 

nd6 options=201<PERFORMNUD,DAD>

media: autoselect (none)


bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=63<RXCSUM,TXCSUM,TSO4,TSO6>

ether 36:47:1e:21:55:80

Configuration:

id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0

maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200

root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0

ipfilter disabled flags 0x0

member: en1 flags=3<LEARNING,DISCOVER>

        ifmaxaddr 0 port 10 priority 0 path cost 0

member: en2 flags=3<LEARNING,DISCOVER>

        ifmaxaddr 0 port 11 priority 0 path cost 0

member: en3 flags=3<LEARNING,DISCOVER>

        ifmaxaddr 0 port 12 priority 0 path cost 0

nd6 options=201<PERFORMNUD,DAD>

media: <unknown type>

status: inactive


utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380

inet6 fe80::4aa9:b625:d4a4:e7ad%utun0 prefixlen 64 scopeid 0x14 

nd6 options=201<PERFORMNUD,DAD>


utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500

inet6 fe80::f819:b29f:7cd:acc0%utun1 prefixlen 64 scopeid 0x15 

nd6 options=201<PERFORMNUD,DAD>


utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000

inet6 fe80::a93:91fe:a9e7:6729%utun2 prefixlen 64 scopeid 0x16 

nd6 options=201<PERFORMNUD,DAD>


utun3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1000

inet6 fe80::ce81:b1c:bd2c:69e%utun3 prefixlen 64 scopeid 0x17 

nd6 options=201<PERFORMNUD,DAD>


utun4: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380

inet6 fe80::6dbf:bd4b:435f:462b%utun4 prefixlen 64 scopeid 0x18 

nd6 options=201<PERFORMNUD,DAD>


utun5: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380

inet6 fe80::40b5:d97e:1e64:5d8a%utun5 prefixlen 64 scopeid 0x19 

nd6 options=201<PERFORMNUD,DAD>


en8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=6464<VLAN_MTU,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>

ether 3c:18:a0:95:53:fe

nd6 options=201<PERFORMNUD,DAD>

media: autoselect (none)

status: inactive


en7: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=404<VLAN_MTU,CHANNEL_IO>

ether da:1a:a6:90:37:e0

inet6 fe80::d81a:a6ff:fe90:37e0%en7 prefixlen 64 scopeid 0xe 

nd6 options=201<PERFORMNUD,DAD>

media: autoselect

status: active


utun10: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500

inet 192.168.253.7 --> 192.168.253.7 netmask 0xffffffe0


vmenet0: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500

ether 9a:37:5f:73:67:1d

media: autoselect

status: active


bridge100: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=3<RXCSUM,TXCSUM>

ether 86:2f:57:e7:c2:64

inet 10.211.55.2 netmask 0xffffff00 broadcast 10.211.55.255

inet6 fe80::842f:57ff:fee7:c264%bridge100 prefixlen 64 scopeid 0x1b 

inet6 fdb2:2c26:f4e4::1 prefixlen 64 

Configuration:

id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0

maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200

root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0

ipfilter disabled flags 0x0

member: vmenet0 flags=3<LEARNING,DISCOVER>

        ifmaxaddr 0 port 26 priority 0 path cost 0

member: vmenet2 flags=3<LEARNING,DISCOVER>

        ifmaxaddr 0 port 30 priority 0 path cost 0

nd6 options=201<PERFORMNUD,DAD>

media: autoselect

status: active


vmenet1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500

ether ba:b2:6b:6a:04:36

media: autoselect

status: active


bridge101: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=3<RXCSUM,TXCSUM>

ether 86:2f:57:e7:c2:65

inet 10.37.129.2 netmask 0xffffff00 broadcast 10.37.129.255

inet6 fe80::842f:57ff:fee7:c265%bridge101 prefixlen 64 scopeid 0x1d 

inet6 fdb2:2c26:f4e4:1::1 prefixlen 64 

Configuration:

id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0

maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200

root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0

ipfilter disabled flags 0x0

member: vmenet1 flags=3<LEARNING,DISCOVER>

        ifmaxaddr 0 port 28 priority 0 path cost 0

nd6 options=201<PERFORMNUD,DAD>

media: autoselect

status: active


vmenet2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500

ether f2:a2:36:4e:91:20

media: autoselect

status: active

Nov 29, 2024 5:21 AM in response to TGessner

TGessner wrote:

True it is somethings installed on the host. Any thoughts on how to debug?

Yes, but I wrote the software, so I can't mention it here in the forums.

I probably wasn't clear "Our Software" runs on the windows 11 guest and I know exactly what it installs.

Then why are you even using a Mac? The days of living large with Intel VMs on a Mac are over. Get yourself a PC for development and another one for testing. Use one of those "ghost" tools to reimage the PC between builds.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

socket connect no route to host

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.