[AG-DEV] Toolkit.CmdlineApplication.instance().GetHostname() question

Jason Bell j.bell at cqu.edu.au
Tue Sep 22 01:02:47 CDT 2009


Hi guys

Quick question, there is a function call within VenueVNCServer3.py:

	hostname=Toolkit.CmdlineApplication.instance().GetHostname()

Question, how does it get the hostname, as I have found this to not
always get the correct hostname....  (IE, I had a machine today - winXP
- 64bit that keep returning localhost address [127.0.0.1]), so I
manually changed hostname="ipadress" and it then worked.

So, does it do a nslookup... Or something like that ???

I am just not sure if this method is the best, rather simply getting the
ip address would be better (as not all machines would be in the DNS,
etc).

Anyway, would like to know how
"Toolkit.CmdlineApplication.instance().GetHostname()" works better.
Where do I find this function?????

Many thanks,
Jason.



--------------------------------------------
Jason Bell, B.I.T. (Honours)

Research Systems Support Officer
Information Technology Division 
CQ University Australia

Australian Research Collaboration Service
http://www.arcs.org.au/

E-mail : j.bell at cqu.edu.au
         jason.bell at arcs.org.au
Work   : +61 7 4930 9229
Mobile : 0409 630897
Postal : Building 19
         Central Queensland University
         Bruce Highway
         Rockhampton, Queensland, Australia, 4702
--------------------------------------------
Patience is a virtue.

But if I wanted Patience,
I would have become a Doctor.
--------------------------------------------




More information about the ag-dev mailing list