Effectively, if you've an other program who use the PORT 80 you can't open an other on the same PORT...
But after I didn't understand, if you work on localhost your DHCP is not a problem...
If you want send data to the web browser you need just to send bytes like this:
bin.New1(Client.GetStream,true)
bin.SendBytes(bin.StringToByte("Test 1 2 3"))
Client.Close
If you want send an HTML file just open your html file with a binary object but not with FileRead() coz some format will be deleted like "è", "é" and the others file like "Jpeg", "Mp3"... will be not recognised by the web browser so it's better to create 2 binary object for send properly a file...
bin.New1(Client.GetStream,true)
htmlPath=apppath & "\www"
file="index.html"
size=fileSize(htmlPath & "\" & file)
FileOpen(c1,htmlPath & "\" & file,cRead)
bina.New1(c1,true)
Dim buffer(size) as Byte
bina.ReadByte(buffer(),0,size)
fileclose(c1)
bin.WriteByte(buffer(),0,size)
Client.Close