The problem is that in the formload part of my program, it sets the winsock control to a certain port and then runs the .listen event. But if that port is already used it get the 'Address in use' error. I made an error handling thing that if it gets that error itll use an input box and ask them for a new port, then goto the beginning of the form load again. But if they get the address in use error again, vb takes over and gives its own error, bypassing my error handle. Any ideas on how to fix this?