[Gambas-user] Sending Udp broadcast?

Ron ron at ...1740...
Thu Nov 13 18:27:52 CET 2008


Werner schreef:
> Ron wrote:
>   
>> Werner schreef:
>>   
>>     
>>>> Thanks!
>>>>
>>>> I have noticed that Ubuntu 8.04 only returns localhost address on 
>>>> hostname -i
>>>>
>>>> ron at ...2013...:~$ hostname -i
>>>> 127.0.1.1
>>>>
>>>> But thats no problem in my case.
>>>>     
>>>>       
>>>>         
>>> I have this on openSUSE 11.0:
>>> $ hostname -V
>>> net-tools 1.60
>>> hostname 1.100 (2001-04-14)
>>>
>>> Also, I had forgotten to mention that Broadcast.Close should be called
>>> when the application terminates.
>>>
>>>
>>>   
>>>     
>>>       
>> Here it reports:
>>
>> ron at ...2013...:~$ hostname -V
>> hostname 2.94
>>
>> Linux and compatibility... hmmm
>>
>> Regards,
>> Ron_2nd.
>>   
>>     
> Please let me know how you get your ip adresse(s) so I can make this
> class more resiliant.
> Werner
>
>   

I found out hostname on ubuntu only reports ip addresses which are in 
/etc/hosts
If you add the 192.168 address to it, hostname reports it too.

Maybe query with ipconfig is more save?

I have a domotica project, with devices table so I keep ip adresses and 
mac adresses of pc's in my db.

Regards,
Ron_2nd




More information about the User mailing list