Login  
Search All Forums
Dart Home | PowerTCP WebServer for ActiveX | Custom Development Reply | PowerTCP WebServer for ActiveX Topics | Forums   
AuthorForum: PowerTCP WebServer for ActiveX
Topic: Port issue
polive96
phil@theolivefamily.com

From: cedar park, TX USA
Posts: 9
Member Since: 08/23/07
posted May 22, 2008 2:08 PM

Hi,

As per my previous post.... on the vista issue... about a day ago... we got past that. But... now back to our original error that we started out with.

Whenever we run our product ON VISTA.... if you close our exe, dart webserver never releases the port. So, upon restarting our program and running the "Start()" method of the webserver... you get a port conflict message. You have to restart the machine to get it to release it.

Keep in mind.... this ONLY happens on vista... not xp.

Any Ideas?

-Phillip
polive96
phil@theolivefamily.com

From: cedar park, TX USA
Posts: 9
Member Since: 08/23/07
posted May 22, 2008 2:25 PM

FYI... here is the full error

Error: Connect, Listen or Open method failed. Only one usage of each socket address (protocol/IP address/port) is normally permitted. This error occurs if an application attempts to bind() a socket to an IP address/port that has already been used for an existing socket, or a socket that wasn't closed properly, or one that is still in the process of closing. For server applications that need to bind() multiple sockets to the same port number, consider using setsockopt(SO_REUSEADDR).
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted May 23, 2008 2:48 PM

When the executable is closed are you insuring that the server object is being closed and then disposed of properly by the .NET framework?
polive96
phil@theolivefamily.com

From: cedar park, TX USA
Posts: 9
Member Since: 08/23/07
posted May 23, 2008 2:50 PM

i thought so.....
what would you do to check?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 10, 2008 11:32 AM

Hi,
Simply calling the Stop method should be enough.
I just tried a quick .NET project on Vista with 2 buttons (Start and Stop), and it worked ok for me.
I was able to repeatedly start and stop the server, as well as close the app down and immediately run and start it back up.

-ken

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerTCP WebServer for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX