1833052 Members
2646 Online
110049 Solutions
New Discussion

Re: xdmcp query

 
Pedro Bueno García
Occasional Advisor

xdmcp query

Hello

How can I make query to xdmcp opening the port via socket and where found then commands handshake for this port. Can I make querys from telnet opening the port or I need other tool?

Kind Regards
10 REPLIES 10
U.SivaKumar_2
Honored Contributor

Re: xdmcp query

Hi,
telnet x.x.x.x 6000
would connect to the X server.
But i think you will not be able to give ascii commands as
it will need special control
chracters and bits for XDMCP
negotiation.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Pedro Bueno García
Occasional Advisor

Re: xdmcp query

Yes this is my question. I don't know the commands to establish the negotiation.
Steve Steel
Honored Contributor

Re: xdmcp query

Hi

You want to do what with XDMCP.

Run it on another X display or PC

Please describe environment


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Pedro Bueno García
Occasional Advisor

Re: xdmcp query

Hi Steve,

I want to open, from my PC windows 2000, the xdmcp port (6000, 177, or whatever) and ask for the xdmcp session servers availables in my network, to emulate the dtchooser in my PC.



Steve Steel
Honored Contributor

Re: xdmcp query

Hi


Get reflection exceed or a similar X emulator.


XDMCP must come from the client not from the server.

Example on UX

/usr/bin/X11/X -query 15.160.35.105 -fp tcp/15.160.35.105:7000 -terminate &

Example ON Linux


#get a chooser
#X :$2 -indirect $1 -fp tcp/topaz:7000 -once -terminate &
#parameters hp-uxbox n[ where n=1-3]
#
#example choosecde topaz 1
#
#note you also should give a fontserver
#
X :$2 -indirect $1 -fp tcp/topaz:7000 &
exit

#get direct cde login
#
#parameters hp-uxbox n[ where n=1-3]
#
#example choosecde topaz 1
#
#note you also should give a fontserver
#
X :$2 -query $1 -fp tcp/topaz:7000 -once -terminate &
exit

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Pedro Bueno García
Occasional Advisor

Re: xdmcp query

OK Steve,

I have Reflection on my PC but if I configure it to connect to indirect mode and to try the first server responding don't have the less load server to connect to.

I want to make a "load balancing" system depending of the load of the system to which I connect.

My idea is to make a connection program that launches the X emulator.


Wodisch_1
Honored Contributor

Re: xdmcp query

Hi Pedro,

I guess your problem is simply to use the wrong transport protocol:
X11 uses TCP/6000
but XDMCP uses UDP/177, IIRC...
And TELNET cannot do UDP, only TCP :-(

Get yourself a copy of the "xdm" (X Display Manager" ) from the X-Consortium or a Linux/*BSD CD-ROM to study the source.

HTH,
Wodisch
Pedro Bueno García
Occasional Advisor

Re: xdmcp query

Hi Wodisch,

I can open whichever port in whichever mode (TCP or UDP) with Visual Basic. My problem is to know the protocol handshake to comunicate with XDMCP.

Steve Steel
Honored Contributor

Re: xdmcp query

Hi

, fall back to using vanilla X protocol
- Start Reflection in non-XDMCP mode, then from the Unix host start a term
with the display directed to your PC's IP address. If this doesn't work you
probably have an "access restriction" issue or else a name/address resolution problem.


Steve Steel

If you want truly to understand something, try to change it. (Kurt Lewin)
Pedro Bueno García
Occasional Advisor

Re: xdmcp query

Hi Steve,

I don't understand your reply I don't know what is the relation with the comunication to xdmcp.

kind regards