Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to know an IP address...

Status
Not open for further replies.

marcob

Programmer
Aug 1, 2000
8
0
0
IT
Hi,
is there a way (that is a CORBA function or something similar) for a CORBA server to know the IP number (or other kinds of Identifiera) of the clients which connects to it (obtaining it by the request?) ?
Thanks,
Marco [sig][/sig]
 
with orbixweb you can try it like this:

from org.omg.CORBA import ORB;
from IE.Iona.OrbixWeb import Activator;
import string
import sys
from java.lang import Integer

serviceHost="XXX.XXX.XXX.XXXX"
icount = 0
iErr = 0
if serviceHost:
orb = ORB.init()
orbixd = Activator.IT_daemonHelper.bind( "", serviceHost )
detailsHolder = Activator.IT_daemonPackage.serverDetailsSeqHolder()
orbixd.listActiveServers( detailsHolder )
services = []
for s in detailsHolder.value: services.append( s.server )
services.sort()
for service in services:
serviceName = string.replace(service, "\\", "/" )

sys.exit()

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top