linux - Java Socket Bind Local Interface (ppp0) -
i've tryied release java socket connection using ppp0 endpoint way:
socket socket = new socket(inetaddress.getbyname("200.147.67.142"), 80, inetaddress.getbyname("189.116.7.204"), 4447);
where 189.116.7.204 ip address ppp0 interface , 200.147.67.142 target.
the problem is: timeoutexception
my network configuration:
ifconfig -a eth0 link encap:ethernet endereço de hw b8:27:eb:fb:45:a6 broadcastmulticast mtu:1500 métrica:1 rx packets:0 errors:0 dropped:0 overruns:0 frame:0 tx packets:0 errors:0 dropped:0 overruns:0 carrier:0 colisões:0 txqueuelen:1000 rx bytes:0 (0.0 b) tx bytes:0 (0.0 b) lo link encap:loopback local inet end.: 127.0.0.1 masc:255.0.0.0 loopbackrunning mtu:16436 métrica:1 rx packets:0 errors:0 dropped:0 overruns:0 frame:0 tx packets:0 errors:0 dropped:0 overruns:0 carrier:0 colisões:0 txqueuelen:0 rx bytes:0 (0.0 b) tx bytes:0 (0.0 b) ppp0 link encap:protocolo ponto-a-ponto inet end.: 189.116.7.204 p-a-p:10.64.64.64 masc:255.255.255.255 pointopoint running noarp multicast mtu:1500 métrica:1 rx packets:24 errors:0 dropped:0 overruns:0 frame:0 tx packets:25 errors:0 dropped:0 overruns:0 carrier:0 colisões:0 txqueuelen:3 rx bytes:408 (408.0 b) tx bytes:537 (537.0 b) wlan0 link encap:ethernet endereço de hw c8:3a:35:ca:4c:50 inet end.: 10.0.1.16 bcast:10.0.1.255 masc:255.255.255.0 broadcastrunning multicast mtu:1500 métrica:1 rx packets:35080 errors:0 dropped:1164 overruns:0 frame:0 tx packets:32267 errors:0 dropped:0 overruns:0 carrier:0 colisões:0 txqueuelen:1000 rx bytes:23543046 (22.4 mib) tx bytes:11526680 (10.9 mib) wwan0 link encap:ethernet endereço de hw 58:2c:80:13:92:63 broadcastrunning multicast mtu:1500 métrica:1 rx packets:0 errors:0 dropped:0 overruns:0 frame:0 tx packets:0 errors:0 dropped:0 overruns:0 carrier:0 colisões:0 txqueuelen:1000 rx bytes:0 (0.0 b) tx bytes:0 (0.0 b)
thanks help...
Comments
Post a Comment