Hi everyone, I wrote c client socket program in Linux and c# server program in window. I want to send text from client to server. I can send from c client program by using write() function. But I...
Type: Posts; User: why_so_serious
Hi everyone, I wrote c client socket program in Linux and c# server program in window. I want to send text from client to server. I can send from c client program by using write() function. But I...
Hi everyone, I am writing on C simple socket programs in Linux. I wrote client and server C programs. My client program is
#include<sys/socket.h>//for socket(), connect(), sendto() and recvform()...
Now I got an error that "Address family not supported by protocol" when I run client program.
I wrote c server program in Linux and tried my client program. my server is ok but my client still gives me connection refused. Even though I changed new port number, still the same.
why u had unreadable mess? I really pasted as text when I pasted it. So in my side, everything is fine.
now my server program is
namespace
server_window
{
public partial class Form1 : Form
Hi I am using perror as you said. I started to run my server program from window and run client program in Linux. At that time, the terminal showed Cannot connect : connection refused. Why is it so?
Hi thanks for your answer. Now I changed my program a little bit. I just wanna test whether it can connect or not.
my program is
#include
<sys/socket.h> //for socket(), connect(), sendto()...
Hi thanks for your answer. I had checked my firewall settings. It was off.
I used telent now. I type telnet myclientip 1234 . it showed that connecting to myclientip.. could not open to the host, on port 1234: Connect failed.. means I cannot use that port no.. ???
I used teraterm to check whether the port is ok or not. But it showed connection refused... :(
I cannot make connection. I run my server first and later client. At that time client program prompt that cannot connect. so that's y
my understanding is that SOCK_STREAM is for TCP. 0 is just default right?
I had used ping to each IP address. So there is connection between them. And I used
serv_addr.sin_port = htons(SERVERPORT);
which is port no 1234.
so sorry to delete unused code.
Hi everyone, I am writing client C socket program in Linux and server C# socket
program in window. I am also running these 2 programs in different PCs. When I
run client program it shows that...