Can I enter an IP address other than localhost? I do not see a host option in the Gateway, only a port. Maybe I'm overlooking it...
--
You received this message because you are subscribed to the Google Groups "Py4J Support and Comments" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4j+uns...@py4j.org.
To post to this group, send email to py...@py4j.org.
To view this discussion on the web visit https://groups.google.com/a/py4j.org/d/msgid/py4j/e563bce7-ecfa-4e2f-9c20-e4ee1f667ee8%40py4j.org.
I'm trying to connect from Python on my Mac to a NetBeans app on
my Windows machine.
I get:
Traceback (most recent call last):
File
"/Users/richard/PycharmProjects/py4jtest/callback_listener.py",
line 34, in <module>
gateway =
JavaGateway(callback_server_parameters=CallbackServerParameters(address='192.168.1.9'))
File "/Library/Python/2.7/site-packages/py4j/java_gateway.py",
line 1659, in __init__
self.start_callback_server(self.callback_server_parameters)
File "/Library/Python/2.7/site-packages/py4j/java_gateway.py",
line 1733, in start_callback_server
self._callback_server.start()
File "/Library/Python/2.7/site-packages/py4j/java_gateway.py",
line 2044, in start
raise Py4JNetworkError(msg, e)
py4j.protocol.Py4JNetworkError: An error occurred while trying to
start the callback server (192.168.1.9:25334)
I would expect maybe some more info, like a socket error
(connection refused, etc)
What could cause this?
Richard