Bad IP In Cart Table

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/15/2009 2:20:01 PM
Gravatar
Total Posts 131

Bad IP In Cart Table

Just wondering if anyone knows why this is happening.

When I run from localhost that is tied to my debug instance, and in production, the createdfromIP taken from Servervariables("Remote_Addr") gets captured as the correct ip.

In my "QA" instance, which is also running off of localhost, but a different port, I'm getting values that either look like "::1" or "fe80::7114:aa47:aab0:c29b%9"

I don't know what either means or why it happens only in this one environment.

 

 

 

9/15/2009 3:02:01 PM
Gravatar
Total Posts 18439

Re: Bad IP In Cart Table

Hi David,

On newer machines like Vista and Win7 you will see these, they are ipv6 addresses as opposed to our more familiar ipv4 addresses which have the xxx.xxx.xxx format.

ipv6 is desinged to make it possible to address more machines but is not fully suported on the internet yet as far as I know.

Best,

Joe

9/15/2009 6:23:28 PM
Gravatar
Total Posts 131

Re: Bad IP In Cart Table

Thanks Joe. Is this controlled in IIS? Just wondering why on one local instance, I get IPV4 and the other I get IPV6. Also, it's taking the IP6 value and passing it to PayPal, which is throwing an error, as it wants an IPV4.

Something to think about. Not sure if it's a bug or a setting.

9/15/2009 6:35:28 PM
Gravatar
Total Posts 131

Re: Bad IP In Cart Table

Just did some more checking. Seems this is largly an issue if the store is on the same machine that is accessing it and IPV6 is enabled (not sure why it reads v4 on one instance and v6 on the other, but).

This is purely a PayPal API not accepting IPV6 issue. Just need to make sure V6 is turned off.

 

9/16/2009 11:06:13 AM
Gravatar
Total Posts 18439

Re: Bad IP In Cart Table

Hi David,

I just found an article that seems to have a solution I can implement for this.

http://aspnet.4guysfromrolla.com/articles/071807-1.aspx

I will get this into the next release.

Thanks for the beers!

Cheers,

Joe

9/16/2009 6:55:17 PM
Gravatar
Total Posts 11

Re: Bad IP In Cart Table

For those that are curious about IPv6 as I was, here are some links.

According to the first article all IPv4 addresses will be depleted by 2011.

Largest US IPv6 network welcomes rivals - http://www.arnnet.com.au/article/310316/largest_us_ipv6_network_welcomes_rivals?fp=2&fpid=1

Here is another - http://www.networkworld.com/news/2009/070609-arin-ceo-ipv6.html?hpg1=bn

IPv6.com - http://www.ipv6.com/index.htm

 

9/18/2009 11:16:03 AM
Gravatar
Total Posts 18439

Re: Bad IP In Cart Table

fyi, there is a preview of mojoPortal 2.3.1.8 available that has the fix for this if you would like to test it.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.