i clone the code from https://github.com/Juniper/grpc-c.git
after built it, i started to test the example in grpc-c/build/examples.
when i run the example code(foo_server, foo_client), foo_server doesn't receive the request from foo_client.
i looked into socket info for foo_server, I found foo_server is listen on IPv6 for 127.0.0.1:3000, it doesn't make sense. because 127.0.0.1 should be for IPv4. And foo_client seems send data to wrong interface. foo_client should send data on 127.0.0.1:3000, right?
why foo_server listen on IPv6 for 127.0.0.1? does it due to foo_server can't receive data from foo_client ?
how to specify the foo_server listen on IPv4 ?
why foo_client send data to wrong interface? In my testing, foo_client send data to 172.xxx.xxx.xxx:3128, the interface and port seems both wrong. (note: i didn't modify any code)
how to set foo_client send data on specified interface & port?
the steps are follows:
console 1:
$sudo foo_server test
i clone the code from https://github.com/Juniper/grpc-c.git after built it, i started to test the example in grpc-c/build/examples. when i run the example code(foo_server, foo_client), foo_server doesn't receive the request from foo_client. i looked into socket info for foo_server, I found foo_server is listen on IPv6 for 127.0.0.1:3000, it doesn't make sense. because 127.0.0.1 should be for IPv4. And foo_client seems send data to wrong interface. foo_client should send data on 127.0.0.1:3000, right?
the steps are follows: console 1: $sudo foo_server test
console 2: $sudo foo_client test
console 3: $sudo lsof -i -n -P foo_serve 14209 root 6u IPv6 522525 0t0 TCP 127.0.0.1:3000 (LISTEN) foo_clien 14226 root 7u IPv6 522640 0t0 TCP 192.168.xxx.xxx:49312->172.xxx.xxx.xxx:3128 (SYN_SENT)
does any one encounter the same issue?