Post links and attach files for documentation here, also chat about these docs freely

User avatar
By JohnFL
#33024 I have a small test program in LUA and I'm having a very hard time connecting to one of my intranet telnet servers. I can connect just fine to any other server but not this one on the intranet (I know, I know....the server is up, it is reachable, it's fine no other problems with any other tool connecting to it). Any ides why an intranet IP will not work with createConnection?

When printing the "reason" of the event disonnection I get:

userdata: 3fff3ce0

Does anybody know what that means? ANY HELP WILL BE HIGHLY APPRECIATED!!!

This is my code:

sk=net.createConnection(net.TCP, 0)
sk:on("receive", function(socket,data)
print("receive..." .. data)
end)
sk:on("sent", function(dat)
print("sent...")
end)
sk:on("connection", function(sck)
print("connected...")
end)

sk:on("disconnection", function(sck,data)
print("disconnected...")
if(sck ~= nil) then
print(sck)
end
end)
sk:connect(4001,"10.0.0.161")


Thanks