Okay just to clarify on some things can you run this code for me please? Change IP$ at the start to whatever your local interface is currently. My results were as followed (IP$ is wrong for me).
I don't know enough about winsock to help but you can google search how to fix or reset it. I think most likely it is a problem with the drivers used by your wireless card or adapter. Update these or reinstall them to see if that helps.
Anyway please post a screenshot of the results, I have to wait for a moderator to approve your post though before I can see the attached image so it would help if you uploaded it to another website e.g. imageshack.us and posted the link.
IP$ = "172.16.0.5"
mn toggle error mode 1
mn toggle error mode 2
mn start 1,0
` Display local interface information
print "Number of local interface: " + str$(mn Get Local IP Amount())
for n = 0 to mn get local IP amount()-1
print " IP " + str$(n) + ": " + mn Get Local IP(n)
next n
` Start server without mnSetLocal
print
print "Binding without setting test 1"
mn Start Server 0,10,0,3
CheckError()
` Try to bind to each local interface in turn
for n = 0 to mn get local IP amount()-1
mn finish -1
mn start 1,0
print
print "Binding setting via stored local interface " + str$(n)
mn set local 0, mn get local IP(n),14000, mn get local IP(n), 14000
mn start server 0,10,0,3
CheckError()
next n
mn finish -1
mn start 1,0
` Bind to hard coded address
print
print "Binding by hard coded address " + IP$
mn finish -1
mn start 1,0
mn set local 0, IP$, 14000, IP$, 14000
mn start server 0,10,0,3
CheckError()
mn finish -1
mn start 1,0
` Bind to local host, retrieving value from "localhost" domain name
localHost$ = mn DNS("localhost")
print
print "Binding to local host " + localHost$
mn set local 0,localHost$,14001,localHost$,14001
mn start server 0,10,0,3
CheckError()
mn finish -1
mn start 1,0
` Retrieve value from default "localhost" domain name incase value is incorrectly set above
localHost$ = "127.0.0.1"
print
print "Binding to local host " + localHost$
mn set local 0,localHost$,14000,localHost$,14000
mn start server 0,10,0,3
CheckError()
` End
print
print
print "Press a key to end..."
wait key
end
` Function prints details of any errors, if no errors then prints "Test success"
function CheckError()
if mn get error flag() = 1
print " Test failed:"
print " ";
print mn Get Error Operation()
print " ";
print mn Get Error Code()
print " ";
print mn Get Error Line()
print " ";
print mn Get Error File()
mn clear error flag
else
print " Test success"
endif
endfunction