in reply to Socket Problem

what do you want to do exactly ?

you want to make a server or a client ?

LocalPort used to specifiy the LocalPort you want to open on your computer to deal with incomming connections as a SERVER

HTH