![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| server/client performance | tomjan | UNIX and Linux Applications | 1 | 05-28-2008 09:16 AM |
| Server client program | pip3r | High Level Programming | 9 | 04-17-2008 02:15 AM |
| client/server | bole | UNIX for Dummies Questions & Answers | 2 | 10-30-2006 02:19 AM |
| ntp server and ntp client | bubba112557 | SUN Solaris | 1 | 05-10-2005 11:37 AM |
| What's the difference between an SSH Client and an SSH Server? | PSC | Security | 1 | 07-19-2004 04:24 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
client/server compile question
Hi, I have 2 files-->server.c and client.c My server.c takes local ip as saying: Code:
*.sin_addr.s_addr=INADDR_ANY; client.c is in the same machine.It has a line like: Code:
*.sin_addr.s_addr=inet_addr(argv[1]); I don't know how to compile.I tried Code:
./client 127.0.0.1 It used port 7777 in both client and server.I think i have missed something. But it works when I use port 80.Do you know why?? I would like to post the client.c and server.c but I know if do so people will start giving there advice. This is a small program.It only connects the client on server. |
|
||||
|
If it's working on one port and not on the other it means you're probably being blocked by a firewall or something. Is there any error when trying to create / connect the client / server in 7777 ? (if not, it's definitely a firewall).
Oh, if you try to bind a server in a low port ( < 1024 ) such as 80 you will need UID 0 (generally root). |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|