Code: Select all
enet = require 'enet'
function love.load()
host = enet.host_create("192.16.100.7:6789")
end
function love.update()
event = host:service(100)
event = host:service()
end
Code: Select all
enet = require 'enet'
function love.load()
host = enet.host_create("192.16.100.7:6789")
end
function love.update()
event = host:service(100)
event = host:service()
end
the ip of 127.0.0.1 is the same as localhost, I'm not planning to use a localhost server, I want to connect multiple devices together.bobbyjones wrote: ↑Wed Jun 12, 2019 2:23 pm Your ip address and port combo is causing host_create to fail. If you use 127.0.0.1:8888 as the ip port combo it will work
Yes, but you should be creating host at the local address (localhost) and only then use the local 192.168.x.x (or WAN external) address from the other devices.PGUp wrote: ↑Wed Jun 12, 2019 5:25 pmthe ip of 127.0.0.1 is the same as localhost, I'm not planning to use a localhost server, I want to connect multiple devices together.bobbyjones wrote: ↑Wed Jun 12, 2019 2:23 pm Your ip address and port combo is causing host_create to fail. If you use 127.0.0.1:8888 as the ip port combo it will work
a localhost can only be created and connected through the same machine, other devices wont connect to a localhost, that's why it is called localhost. I want other devices to connect, not only minedusoft wrote: ↑Wed Jun 12, 2019 8:54 pmYes, but you should be creating host at the local address (localhost) and only then use the local 192.168.x.x (or WAN external) address from the other devices.PGUp wrote: ↑Wed Jun 12, 2019 5:25 pmthe ip of 127.0.0.1 is the same as localhost, I'm not planning to use a localhost server, I want to connect multiple devices together.bobbyjones wrote: ↑Wed Jun 12, 2019 2:23 pm Your ip address and port combo is causing host_create to fail. If you use 127.0.0.1:8888 as the ip port combo it will work
yeah, localhost, localhost ip, 0.0.0.0 ip works, but any other ip wont workm I've tried multiple different ip and ports, none of it works, random ip or ports dont work, i tried ipconfig command in cmd, there is no ethernet local area network thing there. I googled for a while but i cant find any fix for it, my pc is connected to my router.
Karai17 wrote: ↑Thu Jun 13, 2019 1:39 pm You're misunderstanding. The server does not care what the ip address is, only clients trying to connect care. the system hosting a server will always be localhost, thus you shoudl put localhost or 127.0.0.1 as the ip address, and then from the system trying to connect to the server, you'd use your 192 address assuming you are connecting from a separate system on your LAN. If you are connecting from the same machine you are hosting, you want to connect with localhost as well. If you want to connect from the Internet, you'd need to connect with your WAN address.
Users browsing this forum: Ahrefs [Bot] and 6 guests