robotframework / RemoteInterface

Introduction to the remote interface with a list of available remote servers
33 stars 14 forks source link

Security for robotremoteserver #2

Closed sabareeshwaran-plivo closed 5 years ago

sabareeshwaran-plivo commented 8 years ago

if i am using a remote server how can it be authorised. in the docs its only for local server. If i give some remote server ip, it doesn't have any authorisation techniques like username or password. i dont want to use ssh. if i use my server address. its giving me this error.

File "/usr/local/lib/python2.7/site-packages/robotremoteserver.py", line 60, in init SimpleXMLRPCServer.init(self, (host, int(port)), logRequests=False) File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleXMLRPCServer.py", line 593, in init SocketServer.TCPServer.init(self, addr, requestHandler, bind_and_activate) File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 420, in init self.server_bind() File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 434, in server_bind self.socket.bind(self.server_address) File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 49] Can't assign requested address

Ragacibi commented 5 years ago

When creating an object for RobotRemoteServer(), try making the parameter host='0.0.0.0' instead of specifying the IP address explicitly.

pekkaklarck commented 5 years ago

First of all, this tracker is for issue related to the remote interface in general and the RobotRemoteServer has its own tracker. Secondly, @Ragacibi is right that you can provide a custom IP address (and also port) if the user doesn't have rights to bind to the default IP/port.