Nick,

I apologize for posting on both user and dev. I am new to this mailing
list. I was not sure whether  to post on dev or user team.

I am really grateful to you. The above issue is resolved.

So, you'd want to start guacd like so:
> guacd -b 172.15.9.56


This  above command worked and I am able to get the RDP on Windows 10.
Thanks  :)

but when I run the below command

Or, if you want it to listen on all interfaces:
> guacd -b 0.0.0.0


I got the following output :

[root@localhost .guacamole]# guacd -b 0.0.0.0
> guacd[6666]: INFO:      Guacamole proxy daemon (guacd) version
> 0.9.12-incubating started
> guacd[6666]: ERROR:     Unable to bind socket to any addresses.


I appreciate the quick response from Guacamole Team. Thanks everyone for
the efforts.

Thanks and Regards,
Amarjeet Singh


On Thu, Aug 3, 2017 at 6:06 PM, Nick Couchman <[email protected]>
wrote:

> Amarjeet,
> First, please do not post to both Dev and User lists at the same time.  It
> causes confusion.
>
> Second, your issue is likely that your guacd instance is listening *only*
> on the loopback interface (127.0.0.1) on the Linux system and not on all
> interfaces.  This is denoted by the "127.0.0.1:4822" output from the
> netstat output you posted, which indicates that it is not listening on the
> Ethernet interface.  You need to make sure you start guacd with the correct
> parameters to listen on the interface you are actually trying to access it
> on.  This can be done with the -b flag on the guacd command line:
>
> [root@hostname ~]# /opt/guac/sbin/guacd --help
> /opt/guac/sbin/guacd: invalid option -- '-'
> USAGE: /opt/guac/sbin/guacd [-l LISTENPORT] [-b LISTENADDRESS] [-p
> PIDFILE] [-L LEVEL] [-C CERTIFICATE_FILE] [-K PEM_FILE] [-f]
>
> So, you'd want to start guacd like so:
> guacd -b 172.15.9.56
>
> Or, if you want it to listen on all interfaces:
> guacd -b 0.0.0.0
>
> Also, while you're debugging this, you should also make sure your firewall
> on the Linux system is allowing traffic in on port 4822.  I'm not sure what
> distribution you're using, so the exact way to verify and open the port
> will vary, but most Linux distros have the firewall enabled by default
> these days, so make sure you configure that.
>
> -Nick
>
>
> On Thursday, August 3, 2017, 6:54:39 AM EDT, Amarjeet Singh <
> [email protected]> wrote:
>
>
> Hi Team,
>
>
> I am working on Guacamole Client and Server. I did the following steps:-
>
> AIM : To integrate Guacamole using a single URL which contains all the
> information instead of usermapping.xml or noauth-config.xml files.
>
> Installed Guacamole client, Tomcat, in Windows 10.
>
> Installed Gucamole Server on Linux ( Listening on port 4822 )  : Below is
> the output of netstat -ntpl
>
>
>
> Configuration in guacamole.properties
>
> # Hostname and port of guacamole proxy
> guacd-hostname:172.15.9.56
> guacd-port:4822
>
> # Auth provider class (authenticates user/pass combination, needed if
> using the provided login screen)
>  auth-provider: net.sourceforge.guacamole.net. basic.
> BasicFileAuthenticationProvide r
>  basic-user-mapping: user-mapping.xml
>
> # NoAuth properties
> # noauth-config: noauth-config.xml
>
>
> I want to use NoAuthenticatorProvider.jar to directly get the RDP.  I was
> getting the RDP session directly without authentification  when I had
> configured everything  on the same Server ( Guacamole Client and Guacamole
> Server and Tomcat ) .
>
> Now when I have installed the Gucamole Client and Tomcat  on Windows and
> provided the IP ( 172.15.9.56 )  in gucamole.properties I am getting the
> following error: - (  from Logs )
>
>
> 14:01:07.885 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method of Local Environment , Value
> of property is  : 172.15.9.56
> 14:01:07.885 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method of Local Environment , Value
> of property is  : localhost
> 14:01:07.885 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method with two arguments of Local
> Environment , property is  : org.apache.guacamole.
> environment.Environment$2@ 6ba060f3
> 14:01:07.885 [http-nio-8080-exec-4] INFO  GuacamoleProperty Interface -
> Entering into  getName()  of IntegerGuacamoleProperty: Environment Class
> 14:01:07.885 [http-nio-8080-exec-4] INFO  GuacamoleProperty Interface -
> Entering into  getName()  of IntegerGuacamoleProperty: Environment Class
> 14:01:07.885 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method with 1 arguments of Local
> Environment , property is  : org.apache.guacamole.
> environment.Environment$2@ 6ba060f3, property Name :guacd-port,
> properties : 4822
> 14:01:07.885 [http-nio-8080-exec-4] INFO  GuacamoleProperty Interface -
> Entering into  getName()  of IntegerGuacamoleProperty: Environment Class
> 14:01:07.885 [http-nio-8080-exec-4] INFO  GuacamoleProperty Interface -
> Entering into  parseValue of  IntegerGuacamoleProperty Class
> 14:01:07.885 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method of Local Environment , Value
> of property is  : 4822
> 14:01:07.885 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method of Local Environment , Value
> of property is  : 4822
> 14:01:07.885 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method with two arguments of Local
> Environment , property is  : org.apache.guacamole.
> environment.Environment$3@ 7c51782d
> 14:01:07.885 [http-nio-8080-exec-4] INFO  GuacamoleProperty Interface -
> Entering into  getName()  of BooleanGuacamoleProperty: Environment Class
> 14:01:07.885 [http-nio-8080-exec-4] INFO  GuacamoleProperty Interface -
> Entering into  getName()  of BooleanGuacamoleProperty: Environment Class
> 14:01:07.885 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method with 1 arguments of Local
> Environment , property is  : org.apache.guacamole.
> environment.Environment$3@ 7c51782d, property Name :guacd-ssl, properties
> : null
> 14:01:07.885 [http-nio-8080-exec-4] INFO  GuacamoleProperty Interface -
> Entering into  getName()  of BooleanGuacamoleProperty: Environment Class
> 14:01:07.886 [http-nio-8080-exec-4] INFO  GuacamoleProperty Interface -
> Entering into  parseValue of  BooleanGuacamoleProperty Class
> 14:01:07.886 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method of Local Environment , Value
> of property is  : null
> 14:01:07.886 [http-nio-8080-exec-4] INFO  o.a.g.environment.
> LocalEnvironment - Inside getProperty method of Local Environment , Value
> of property is  : false
> 14:01:07.886 [http-nio-8080-exec-4] DEBUG o.a.g.net.InetGuacamoleSocket -
> Connecting to guacd at 172.15.9.56:4822.
> 14:01:08.889 [http-nio-8080-exec-4] ERROR o.a.g.w.
> GuacamoleWebSocketTunnelEndpoi nt - Creation of WebSocket tunnel to guacd
> failed: java.net.ConnectException: Connection refused: connect
> 14:01:08.895 [http-nio-8080-exec-4] DEBUG o.a.g.w.
> GuacamoleWebSocketTunnelEndpoi nt - Error connecting WebSocket tunnel.
> org.apache.guacamole. GuacamoleServerException: java.net.ConnectException:
> Connection refused: connect
> at org.apache.guacamole.net. InetGuacamoleSocket.<init>(
> InetGuacamoleSocket.java:116) ~[guacamole-common-0.9.10- incubating.jar:na]
> at org.apache.guacamole.net.auth. simple.SimpleConnection.
> connect(SimpleConnection.java: 137) ~[guacamole-ext-0.9.12-
> incubating.jar:na]
> at org.apache.guacamole.tunnel. TunnelRequestService.
> createConnectedTunnel( TunnelRequestService.java:173) ~[classes/:na]
> at org.apache.guacamole.tunnel. TunnelRequestService. createTunnel(
> TunnelRequestService.java:351) ~[classes/:na]
> at org.apache.guacamole.tunnel. websocket. RestrictedGuacamoleWebSocketTu
> nnelEndpoint.createTunnel( RestrictedGuacamoleWebSocketTu
> nnelEndpoint.java:124) ~[classes/:na]
> at org.apache.guacamole. websocket. GuacamoleWebSocketTunnelEndpoi
> nt.onOpen( GuacamoleWebSocketTunnelEndpoi nt.java:112)
> ~[guacamole-common-0.9.10- incubating.jar:na]
> at org.apache.tomcat.websocket. server.WsHttpUpgradeHandler.
> init(WsHttpUpgradeHandler. java:133) [tomcat-websocket.jar:9.0.0. M22]
> at org.apache.coyote. AbstractProtocol$ ConnectionHandler.process(
> AbstractProtocol.java:842) [tomcat-coyote.jar:9.0.0.M22]
> at org.apache.tomcat.util.net. NioEndpoint$SocketProcessor.
> doRun(NioEndpoint.java:1372) [tomcat-coyote.jar:9.0.0.M22]
> at org.apache.tomcat.util.net. SocketProcessorBase.run(
> SocketProcessorBase.java:49) [tomcat-coyote.jar:9.0.0.M22]
> at java.util.concurrent. ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1149) [na:1.8.0_144]
> at java.util.concurrent. ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:624) [na:1.8.0_144]
> at org.apache.tomcat.util. threads.TaskThread$ WrappingRunnable.run(
> TaskThread.java:61) [tomcat-util.jar:9.0.0.M22]
> at java.lang.Thread.run(Thread. java:748) [na:1.8.0_144]
> Caused by: java.net.ConnectException: Connection refused: connect
> at java.net. DualStackPlainSocketImpl. waitForConnect(Native Method)
> ~[na:1.8.0_144]
> at java.net. DualStackPlainSocketImpl. socketConnect(
> DualStackPlainSocketImpl.java: 85) ~[na:1.8.0_144]
> at java.net. AbstractPlainSocketImpl. doConnect(
> AbstractPlainSocketImpl.java: 350) ~[na:1.8.0_144]
> at java.net. AbstractPlainSocketImpl. connectToAddress(
> AbstractPlainSocketImpl.java: 206) ~[na:1.8.0_144]
> at java.net. AbstractPlainSocketImpl. connect(
> AbstractPlainSocketImpl.java: 188) ~[na:1.8.0_144]
> at java.net.PlainSocketImpl. connect(PlainSocketImpl.java: 172)
> ~[na:1.8.0_144]
> at java.net.SocksSocketImpl. connect(SocksSocketImpl.java: 392)
> ~[na:1.8.0_144]
> at java.net.Socket.connect( Socket.java:589) ~[na:1.8.0_144]
> at org.apache.guacamole.net. InetGuacamoleSocket.<init>(
> InetGuacamoleSocket.java:102) ~[guacamole-common-0.9.10- incubating.jar:na]
> ... 13 common frames omitted
> 14:01:08.908 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.
> TunnelRequestService - Entering into createTunnel method of of
> TunnelRequestService
> 14:01:08.908 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.
> TunnelRequestService - Entering into getClientInformation method of of
> TunnelRequestService
> 14:01:08.908 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.
> TunnelRequestService - Value of width is 1920
> 14:01:08.908 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.
> TunnelRequestService - Value of width is 1920
> 14:01:08.908 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.
> TunnelRequestService - Value of height is 504
> 14:01:08.908 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.
> TunnelRequestService - Value of dpi is 96
>
>
> I request youi to please help to resolve the above issue. I would be very
> grateful to you.
>
> Thanks and Regards,
> Amarjeet Singh
> +91 8130604385
> Software Engineer, Pune  Maharashtra, India.
>
>
>
>
>
>
>
>

Reply via email to