<div dir="ltr">You probably have either a routing misconfiguration, or a firewall in the middle.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 7, 2015 at 2:00 AM, chenyu <span dir="ltr"><<a href="mailto:yu.chen.surf@gmail.com" target="_blank">yu.chen.surf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,Martin,<br>
I can connect to itself localy(on 192.168.1.3,connect to 192.168.1.3)<br>
nc -v  192.168.1.3 3632<br>
Ncat: Version 6.45 ( <a href="http://nmap.org/ncat" rel="noreferrer" target="_blank">http://nmap.org/ncat</a> )<br>
Ncat: Connected to <a href="http://192.168.1.3:3632" rel="noreferrer" target="_blank">192.168.1.3:3632</a>.<br>
<br>
but can not get connected on 192.168.1.2, which complains of:<br>
nc -v  192.168.1.3 3632<br>
nc: connect to 192.168.1.3 port 3632 (tcp) failed: No route to host<br>
<br>
<br>
best regards,<br>
Yu<br>
<div class="HOEnZb"><div class="h5"><br>
Try to connect with<br>
<br>
  nc -v  192.168.1.3 3632<br>
<br>
On Sat, Jul 4, 2015 at 4:23 PM, chenyu <<a href="mailto:yu.chen.surf@gmail.com">yu.chen.surf@gmail.com</a>> wrote:<br>
Hi, all<br>
I've got two machine of linux,  A is fedora 21, B is ubuntu 14.04. After<br>
make install distcc on these two machines, I set both A and B as distccd server,<br>
<br>
A : ip=192.168.1.3<br>
distccd --daemon --user nobody --allow <a href="http://192.168.0.0/16" rel="noreferrer" target="_blank">192.168.0.0/16</a> --listen=192.168.1.3<br>
export DISTCC_POTENTIAL_HOSTS='192.168.1.3 192.168.1.2'<br>
export DISTCC_HOSTS='192.168.1.3 192.168.1.2'<br>
<br>
and  B:  ip=192.168.1.2<br>
distccd --daemon --user nobody --allow <a href="http://192.168.0.0/16" rel="noreferrer" target="_blank">192.168.0.0/16</a> --listen=192.168.1.2<br>
export DISTCC_POTENTIAL_HOSTS='192.168.1.2 192.168.1.3'<br>
export DISTCC_HOSTS='192.168.1.2 192.168.1.3'<br>
<br>
 it seems that, B can not connect to A,  here's the log on B with DISTCC_VERBOSE=1:<br>
<br>
distcc[29402] (dcc_note_state) note state 2, file "exec_domain.c", host "192.168.1.3"<br>
distcc[29402] (dcc_connect_by_addr) started connecting to <a href="http://192.168.1.3:3632" rel="noreferrer" target="_blank">192.168.1.3:3632</a><br>
distcc[29402] (dcc_select_for_write) select for write on fd5<br>
distcc[29402] ERROR: nonblocking connect to <a href="http://192.168.1.3:3632" rel="noreferrer" target="_blank">192.168.1.3:3632</a> failed: No route to host<br>
distcc[29402] (dcc_unlock) release lock fd4<br>
distcc[29402] (dcc_mark_timefile) mark /home/acpi/.distcc/lock/backoff_tcp_192.168.1.3_3632_0<br>
distcc[29402] (dcc_unlock) release lock fd3<br>
distcc[29402] Warning: failed to distribute kernel/exec_domain.c to 192.168.1.3, running locally instead<br>
distcc[29402] (dcc_lock_host) /home/acpi/.distcc/lock/cpu_localhost_0 is busy<br>
distcc[29402] (dcc_lock_host) /home/acpi/.distcc/lock/cpu_localhost_1 is busy<br>
<br>
<br>
and the port of distcc on A is opened:<br>
$ netstat -nlp | grep distcc<br>
tcp        0      0 <a href="http://192.168.1.3:3632" rel="noreferrer" target="_blank">192.168.1.3:3632</a>        0.0.0.0:*               LISTEN      5099/distccd<br>
<br>
$ ping 192.168.1.3<br>
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.<br>
64 bytes from <a href="http://192.168.1.3" rel="noreferrer" target="_blank">192.168.1.3</a>: icmp_seq=1 ttl=64 time=0.449 ms<br>
64 bytes from <a href="http://192.168.1.3" rel="noreferrer" target="_blank">192.168.1.3</a>: icmp_seq=2 ttl=64 time=0.335 ms<br>
64 bytes from <a href="http://192.168.1.3" rel="noreferrer" target="_blank">192.168.1.3</a>: icmp_seq=3 ttl=64 time=0.390 ms<br>
<br>
$ route<br>
Kernel IP routing table<br>
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br>
192.168.1.0     *               255.255.255.0   U     1      0        0 eth2<br>
<br>
Can anyone please give me some advice on why this happened.<br>
Thanks<br>
<br>
Yu<br>
__<br>
distcc mailing list            <a href="http://distcc.samba.org/" rel="noreferrer" target="_blank">http://distcc.samba.org/</a><br>
To unsubscribe or change options:<br>
<a href="https://lists.samba.org/mailman/listinfo/distcc" rel="noreferrer" target="_blank">https://lists.samba.org/mailman/listinfo/distcc</a><br>
<br>
<br>
<br>
--<br>
Martin</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Martin<br></div>
</div>