BennuPlayNet distant connect (IP)

Started by Grew, January 30, 2011, 05:43:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Grew

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!
My game developer instagram :
https://www.instagram.com/ben_dev_game/

l1nk3rn3l

internet address
http://www.whatsmyip.org/


1. run server

2. connect client


if (!BNP_CONNECT("195.200.25.233",players,sizedata))
     return;
end;




Grew

I tried but the client prog exits when trying to connect :(.
My game developer instagram :
https://www.instagram.com/ben_dev_game/

Grew

#3
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).
My game developer instagram :
https://www.instagram.com/ben_dev_game/


Grew

Firewall is off, and no antivirus installed.
My game developer instagram :
https://www.instagram.com/ben_dev_game/

josebita

Any hardware firewall? Like a router the server is connected to?

Windgate

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.
Iván García Subero. Programador, profesor de informática, monitor de actividades culturales y presidente de TRINIT Asociación de Informáticos de Zaragoza. http://trinit.es

Grew

Ok there is a problem with my network I think. Ping to my IP address doesn't success.
I have no router.
My game developer instagram :
https://www.instagram.com/ben_dev_game/

l1nk3rn3l

#9
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
if work you connection is ok....



Grew

The problem is solved. It was because of my Freebox (it works as a router, and I didn't know).
My game developer instagram :
https://www.instagram.com/ben_dev_game/

josebita