Hi,
Is there a way to make a distant connection with BennuPlayNet (for exemple by using the IP server address)
I've tried to change
if (!BNP_CONNECT("localhost",players,sizedata))
return;
end;
with
if (!BNP_CONNECT("IP ADDRESS",players,sizedata))
return;
end;
But it doesn't work.
Thanks!
internet address
http://www.whatsmyip.org/
1. run server
2. connect client
if (!BNP_CONNECT("195.200.25.233",players,sizedata))
return;
end;
I tried but the client prog exits when trying to connect :(.
Here are the logs:
Iniciando playNET
irrNetLite: Error: Connection timed out. Connection failed.
Creado Cliente. apuntando a xxx.xxx.xxx.xxx
Identificador Cliente: 0
finalizando playNET
finalizado playNET - OK
It works great in local network (and so with Hamachi).
Firewall?
Firewall is off, and no antivirus installed.
Any hardware firewall? Like a router the server is connected to?
Bennuplaynet works fine, are you sure you are writing the IP correctly?
Try doing a ping to the same IP first.
You can also post the game and we could try.
Ok there is a problem with my network I think. Ping to my IP address doesn't success.
I have no router.
maybe,,,,
internet can be slow...
BNP_TIMEOUT= 15000;
BNP_REFRESH_MS= 1000;
BNP_FAST_MODE =false;
if (!BNP_CONNECT("195.200.25.233",players,sizedata))
return;
end;
please try with a http server how http://www.apachefriends.org/en/xampp-windows.html (http://www.apachefriends.org/en/xampp-windows.html)
if work you connection is ok....
The problem is solved. It was because of my Freebox (it works as a router, and I didn't know).
Great to know.