Page 1 of 1

problem with the getlocalip

Posted: Fri Dec 16, 2016 4:47 am
by xabierpayet
with this code i need to know the ip of the machine running the server, but ip$ ever return 0.0.0.0

CreateServer(1,25000)
NPrint("Server connected")
ip$ = GetLocalip(1,#NETWORKSERVER)
NPrint(ip$)

is possible to know the real ip for make a connection between 2 different devices? (directly from hollywood, of course)

Re: problem with the getlocalip

Posted: Fri Dec 16, 2016 10:59 pm
by xabierpayet
the 2 devices are 2 phones, and as i see in some forums, is not possible to open the ports of them (using 3 or 5G), and the connection is ever refused, enable blutooth in newer hollywood versions will be a good solution

Re: problem with the getlocalip

Posted: Sat Dec 17, 2016 1:45 pm
by airsoftsoftwair
On phones there are some restrictions concerning port opening, of course. Nobody wants to have malware on his phone...

Re: problem with the getlocalip

Posted: Sun Dec 18, 2016 5:46 am
by xabierpayet
about the ip question, i still with the same problem and using this other code

iphost=GetHostName()
iphost=toip(iphost)
nprint(iphost)

iphost print 192.168.137.1 instead of the 192.168.1.103 that say my router (as ip number)
is here another way to find it?

Re: problem with the getlocalip

Posted: Wed Dec 21, 2016 10:14 pm
by airsoftsoftwair
On which system do you get this result?

Re: problem with the getlocalip

Posted: Wed Dec 21, 2016 10:18 pm
by xabierpayet
was an error in my router configuration, the server work perfect, and fast xD
how many connections can i have simultaneously in a server created with createserver?

Re: problem with the getlocalip

Posted: Thu Dec 22, 2016 12:07 am
by airsoftsoftwair
Hollywood doesn't impose any limit here.

Re: problem with the getlocalip

Posted: Thu Dec 22, 2016 1:07 am
by xabierpayet
nice