problem with org.neo4j.server.webserver.address setting

537 views
Skip to first unread message

Denys Hryvastov

unread,
Jun 4, 2013, 11:26:59 AM6/4/13
to ne...@googlegroups.com
Hi neo4j community -

I have some issue with org.neo4j.server.webserver.address setting in property file.

By default it works for localhost and works fine - I am trying to access webadmin - http://localhost:7474/webadmin/. Now I want to allow access to everybody, I set it to org.neo4j.server.webserver.address=0.0.0.0 - everything works fine too.

If I now try to allow access only to some specific machine org.neo4j.server.webserver.address=10.10.10.10 (in my file I specify correct IP address) then I am not able to access webadmin from the browser located on 10.10.10.10. What's the problem? Why can't I do this? If I specify the IP address of my local machine - then I am able to access webadmin using http://ua006261:7474/webadmin/.

Could you please tell me what I am doing wrong? I use 1.8.2 version.

Also, is it possible to specify two IP addressed here (something like org.neo4j.server.webserver.address=10.10.10.10; 20.20.20.20)?

Thanks in advance.
Denys

Michael Hunger

unread,
Jun 4, 2013, 7:16:51 PM6/4/13
to ne...@googlegroups.com
Actually you specify the IP address that the server should use to listen to requests coming in,
many servers have multiple network cards with multiple IP addresses

And if you comment it out it defaults to localhost which makes the server not accessible to the outside world.

Michael

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Cheers,

Michael

(you)-[:GET]->(graphconnect-ticket)<-[:DISCOUNT {value:25%}]-(NEO4GC)

Denys Hryvastov

unread,
Jun 5, 2013, 6:36:26 AM6/5/13
to ne...@googlegroups.com
HI Michael -

Thank you for your reply but I still have the same issue.
I verified IP addresses, they look fine. My local IP (where neo4j server is running) is 10.136.41.146. I would like to give access to neo4j server for machine with IP 10.136.41.180.
We are in a same domain, in the same network, we can ping each other well and share resource.
But when I try to start neo4j server I get an error:
13:30:03.978 [main] WARN  org.mortbay.log - failed SelectChannelConnector @10.136.41.180:7474: java.net.BindException: Cannot assign requested address: bind
13:30:03.985 [main] WARN  org.mortbay.log - failed SslSocketConnector @10.136.41.180:7473: java.net.BindException: Cannot assign requested address: JVM_Bind


Looks really strange for me.
I was thinking about some issues with firewall, but when I specify 0.0.0.0 - then everybody can access my neo4j server.

Could you please help? Any ideas?
Also, the question that I asked before: is it possible to specify two IP address here (we have a use case when neo4j server should be accessed only from two machines)?

Thanks.
Denys
neo4j.0.0.log

Denys Hryvastov

unread,
Jun 5, 2013, 8:07:48 AM6/5/13
to ne...@googlegroups.com
Hi Michael -

Looks like I understand what was the issue now.
I had to specify the IP address of the machine where neo4j server is installed. And I thought that this is the IP address of the machines that can send requests to neo4j server.
Thanks for you help.

Denys

Michael Hunger

unread,
Jun 5, 2013, 12:14:25 PM6/5/13
to ne...@googlegroups.com
Exactly! Thanks for the notification.

Michael

Sent from mobile device
Reply all
Reply to author
Forward
0 new messages