Update: the StackOverflow community helped me find the answer:

http://stackoverflow.com/questions/6217766/how-to-set-canonical-hostname-in-linux

Here's what you have to do:

1. open conf/neo4j-wrapper.conf
2. find the section called "Java Additional Parameters"
3. Add the following line:
wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true

Hope this helps someone else ...

-- Jim

On Thu, Jun 2, 2011 at 12:53 PM, Jim R. Wilson <[email protected]>wrote:

> Hi Neo4j community,
>
> I'm trying to get Neo4j running on CentOS 5.6 and running into what I
> believe is a hostname/address problem.  When Neo4j starts up in server mode,
> it appears to bind to the IPv6 host name, as evidenced by netstat (below).
>
> How can I configure Neo4j to bind to a normal IPv4 address (0.0.0.0)?
>  Thanks in advance for any help!
>
> $ netstat -plten
> ...
> Proto  Local Address    Foreign Address    State       User       Inode
>  PID/Program name
> tcp    0.0.0.0:930      0.0.0.0:*          LISTEN      0          10240
>    -
> tcp    0.0.0.0:139      0.0.0.0:*          LISTEN      0          57484
>    -
> tcp    0.0.0.0:111      0.0.0.0:*          LISTEN      0          10104
>    -
> tcp    127.0.0.1:25     0.0.0.0:*          LISTEN      0          12714
>    -
> tcp    0.0.0.0:445      0.0.0.0:*          LISTEN      0          57483
>    -
> tcp    :::7474          :::*               LISTEN      500        524965
>   28200/java
> tcp    :::22            :::*               LISTEN      0          62967
>  -
> tcp    :::1337          :::*               LISTEN      500        524953
>   28200/java
> tcp    :::15003         :::*               LISTEN      500        481149
>   3926/java
> tcp    :::60156         :::*               LISTEN      500        524951
>   28200/java
> tcp    :::15004         :::*               LISTEN      500        524917
>   28177/java
>
> -- Jim R. Wilson (jimbojw)
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to