Page 1 of 1

getting the address of the server

PostPosted: Mon Jul 18, 2011 5:25 pm
by bhcho
Hi all,

just quick question.

when I connect to a local omero server (localhost) by
Code: Select all
server = 'localhost'
port = 4064
client = omero.client( server, port )
session = client.createSession( username, password )


is there anyway to retrieve the full address of the server (such as omero.aaa.edu)?
(getPropertyMap will give me 'localhost')

Best,
BK

Re: getting the address of the server

PostPosted: Mon Jul 18, 2011 7:59 pm
by jmoore
There's no OMERO-specific way to do that, no. The Python "socket" module has some functions that may be of use.

Cheers,
~Josh.