IPv6, PHP, and Java on 10.5.5

Jump to First Reply
Posted:
in Genius Bar edited January 2014
I recently ran into a problem with some PHP code running on my server. When PHP pushed a FORM page, $server["REMOTE_ADDR"] always returned the IPv6 version of localhost(::0) but when a java applet pushed a FORM document it contained the IPv4 version of localhost(127.0.0.1). This made some IP based testing fail. I found a workaround(use actual ip:192.x.x.x) but was wondering about another way. Can this behavior changed by the order of the lines in etc/hosts? Can it be changed by the way vitual host entries are written in etc/hosts(127.0.0.1 my.dev.site)? Or can it be changed by the format of the VirtualHost statement in httpd-vhosts.conf?
Sign In or Register to comment.