Get my IPs in a normal format
Posted by: Dugi (82.114.94.---)
Date: January 01, 2013 10:17PM

Hello,

I'm not really familiar with this IPv4 and IPv6 stuff, but I figured out that IPv4 are the standard looking IPs like 127.0.0.1 while IPv6 are IPs like ::1.

I am getting those ::1 IPs and I don't really want them on my wamp. For example when I echo out the $_SERVER['REMOTE_ADDR'] I get ::1. How do I make it return 127.0.0.1 instead?

Thanks.

EDIT:

I even get something like this returned fe80::547f:a598:34f6:d502

?????



Edited 1 time(s). Last edit at 01/01/2013 10:20PM by Dugi.

Options: ReplyQuote
Re: Get my IPs in a normal format
Posted by: RiggsFolly (---.as13285.net)
Date: January 02, 2013 11:41AM

Edit these files as follows to make Apache and MySQL only listen on IPV4.

wampmanager -> Apache -> httpd.conf

Change
Listen 80

To
Listen 0.0.0.0:80

wampmanager->MySQL->my.ini

Add this line into the section under the heading
[wampmysqld]

bind_address = 0.0.0.0

Then restart all services
wampmanager -> Restart All Services

Options: ReplyQuote


Sorry, only registered users may post in this forum.