Well, the search function is your friend, you know 
[lua]local http = require(“socket.http”)
local ltn12 = require(“ltn12”)
–****************************************************************
function check_conn()
–****************************************************************
local answer={} – This contains text web page (or other output from server), if it found
local error=“Network OK”
local wawurl=“http://www.google.com” – or other site, of course
local c,r=http.request{
url = wawurl,
sink = ltn12.sink.table(answer)
}
if r==“host not found” then
error=r
end
if (r~=200 and r~=“host not found”) then
error="HTTP error "…r
end
return error
end[/lua]
I hope that helps. Just change the IP to a local one.
Cheers
Michael
http://www.whiteskygames.com
http://www.twitter.com/mhartlef
[import]uid: 5712 topic_id: 5379 reply_id: 19415[/import]