I have a very simple question. I want to test whether a particular port is currently under use or not. For this, I want to bind a TCP socket to the ...
I am browsing some source code which connects to a remote host on port P(using TCP). After the call to connect,(assuming successful), I would like to discover the client port of ...
To run some simulator we installed Windows Services for Unix.
This uses an UDP port 1035,
In some PC's this Windows service for Unix works fine, but in others it fails.
After some analysis ...
Hi, i am getting ur question. Usually after shutdown this behaviour dosent happen. So to understand whats happenening after running the first application run netstat and see whats happening to the port or somebody is using it. Then run the second program if the port is not used by any body. Raghu
I would suggest using a table to maintain port information, look up the port lists on the internet first so you can avoid ranges in use. Eg: if you can use ports 1999 - 4999 then set a variable to this value and let this value be the first port you assign, assign the next one 2000 etc. Though this wouldnt ...
I am looking to create a distributed server that can listen on multiple ports. I have code written that works with one port, but I am not sure how to specify the server to listen on 2 ports. I put my entire code down for the server because it is short. I have been playing with the code for quite some ...
Hmm...i'm not sure you got what i meant. I am using a UDP socket (not TCP) to send packets out to a certain host. I want the packet to have a fixed source port set by myself, i don't want the socket to assign a random source port. The reason for this is that the end node wants to check if ...