Just a hunch, but they're both probably trying to bind to port 5060 and 
one of the bind()'s is failing. What's your sin_port for each of those 
and are your checking the result of your bind() call?

Brandon

On 04/27/2011 05:19 AM, rakeen siena wrote:
> Hi,
> initially I started to set up a Client and then a Server, tested them. Both
> were working fine when they were running on different machines, but now I
> thought of combining them in the same source code and run them on the same
> machine. The result is that I can see no connection between the Client and
> the Server. Since I am trying to run it on the same machine in both cases
> the IP Address is the same, I have initialized both of them with the same IP
> Address.But still I could not establish a connection. I am using UDP for
> sending and receiving the data between the Client and the Server. Any
> mistake I am making in this case or any important thing I have forgot to
> initialize.
>
> For example on Server side:
> ServAddr.sin_addr.s_addr = inet_addr("1.2.3.4");
>
> On Client side:
> ClientAddr.sin_addr.s_addr = inet_addr("1.2.3.4");
>
> I cant even sniff any data transfer using wireshark.
>
> Regards
> Rakeen
> _______________________________________________
> Sip-implementors mailing list
> [email protected]
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
>    
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to