Re: client & server (socket) running on same machine, tcpdump can't dumpout any packet info, how?
- From: Joseph2k <joseph2k@xxxxxxxxxx>
- Date: Sun, 15 Jan 2006 03:34:05 GMT
GS wrote:
> Here I have two clients, only one client can get the response the other
> one is not getting the response, Do I have to do any modification to my
> server incase if it wants to communicate two simultaneous clients?.
> Both are using same port number. Only one client (first started one)
> get the response always, the second clients never gets any response.
>
> ,/server (server)
>
> ./clien1 <ip-addr-of-serv> (first client)
>
> ./clie2 <ip-addr-of-sock> (second cli)
>
> Thanks.
>
>
>
>
>
> David Schwartz wrote:
>> "GS" <globalswamy@xxxxxxxxxxx> wrote in message
>> news:1134006762.673787.282760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>> >I configured on both sides port as 15000, I pasted code below,
>>
>> That doesn't really show much, but I'm assuming you configured the
>> server side to listen on 15000 and the client side to send to 15000. That
>> still leaves the client to decide what port to receive on, which will be
>> the port the server will have to send to.
>>
>> > this
>> > port 32806 is picked by system itself, Is that is not user
>> > configurable?. I mean system can pickup any port?. Here it picked 32806
>> > like that it can use any port right?. Is there anyway I can configure
>> > receiving on server port?. (can I replce 32806 with any other port
>> > number I like)?. Thanks.
>>
>> Yes, you can 'bind' in the client. But it's usually a bad idea.
>>
>> DS
>
IIRC there is a second ID type number for IP connection right after the port
number used to identify alternate clients from the same IP address. Don't
remember how to use it though.
--
JosephKK
.
- Follow-Ups:
- Prev by Date: Re: Determine IP address assigned to MAC
- Next by Date: Re: How do you ger the OS to recognise a USB Wi-Fi adapter?
- Previous by thread: ethernet multilinking with 2 isps
- Next by thread: Re: client & server (socket) running on same machine, tcpdump can't dumpout any packet info, how?
- Index(es):
Relevant Pages
|