benlo.com was an excellent starting point for all this.
Any, on to my problem.. When I create a web server I can only connect to it once. Not only that, this "one time connection" only works after a hard reset. At first I thought it was something in my code. So I tried an example from the NodeMCU github..
srv=net.createServer(net.TCP)
srv:listen(80,function(conn)
conn:on("receive",function(conn,payload)
print(payload)
conn:send("<h1> Hello, NodeMcu.</h1>")
end)
conn:on("sent",function(conn) conn:close() end)
end)
And this will only connect once.. I'm running firmware NodeMCU 0.9.5 build 20150213 - anyone else having similar problems?