9

I run UNIX Network Programming Volume 1(3rd) but how to config the networking environment?

view full story
linux-howto

http://stackoverflow.com – I just run the "1.2 A Simple Daytime Client" sample. but under ubuntu, how to config the networking environment? THe sample usage is "solaris % a.out 206.168.112.96", here how should i change the IP here. I am connect to Internet by a LAN. my ip showing by ifconfig is inet address: 192.168.0.109, but here when i type a.out 192.168.0.109, it give a info that "connect error: Connection refused", how should i do? Attached is this sample code: intro/daytimetcpcli.c #include "unp.h" int main(int argc, char **argv) { int sockfd, n; char recvline[MAXLINE + 1]; (HowTos)