[RESOLVED] Socket/Port remains open after app crashes
Posted on
16th Feb 2014 07:03 pm by
admin
I'm having this problem with a networked app in vb.net.
If the program exits normally the port closes fine, however, if it crashes sometimes it remains open and I am unable to close it. The next time I run the program it is unable to open the port because it is already in use. Here's the exception:
10048: Only one usage of each socket address (protocol/network address/port) is normally permittedAny ideas on how I can reclaim this port, or how I can close it?
Did you know?Explore Trending and Topic pages for more stories like this.
I tried using the reuse address socket option
Code: SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, 1) but that just opens the port again and does not close the old one. see this netstat output:
TCP PCISERVER:14000 PCISERVER.cpwpci.cpwgroup.net:0 LISTENING 4320
[System]
TCP PCISERVER:14000 PCISERVER.cpwpci.cpwgroup.net:0 LISTENING 5808
[System]
TCP PCISERVER:14001 PCISERVER.cpwpci.cpwgroup.net:0 LISTENING 5808
[System]
TCP PCISERVER:14001 PCISERVER.cpwpci.cpwgroup.net:0 LISTENING 4320
[System]
As you can see once the program exits the ports remain opened by the System process.
I don't know of a way to stop them from listening besides a restart.
No comments posted yet
Your Answer:
Login to answer
87
27
Other forums
tag inside php... hi
Code: <?php echo "<td width="$columnWidth%" align=&Help Ordering Arrays Hi, I have 3 arrays as shown below.
Code: $users = $this->get_latest_users(); $flir The IE or FF detector Hello Friends,
Problem of today ( we seek for php help ) as following ,
we know all th get the country of visitor and display content based on that Hello all,
I have seen that Google analytics can tell you where a visitor is coming from and Redirect not working after making a POST/GET Hi Everyone,
I am a novice in PHP. Here I have 2 pages, one page with a textbox and button an Save data in input fields when they press "BACK BUTTON" Hi, this is html form: And let's say they get a error "Please enter ur title must be more then Export hangs Hi all, please help
I have a Oracle 10.2.0.3.0 database. When I want to query the dba_segmen IP Logger for Voting Script Can anybody help me place an IP logger into my voting script? I know that maybe it is not as secu Help Import Animoto and Youtube CAn someone help me urgently want to allow users on my website to import youtube/revver/dailymotion how to transport the Query and insfoset Hi
I have created the query using SQ01........
How to created T-code for query..
|