127.0.0.1 is not just a different ip address to the machine ip address, it's a different interface as well. 127.0.0.1 should not be seen on the local network. It's a special internal IP address for the loopback adapter.
x.x.x.x will be your ethernet card.
by the way 'localhost' is simply an entry in your hosts file that points to 127.0.0.1
If you bind a socket to 127.0.0.1:8200 then only clients running locally will be able to access it and only withhttp://127.0.0.1:8200orhttp://localhost:8200(or
a dns or hosts file entry that points to 127.0.0.1).
A socket bound to x.x.x.x:8200 will only be available throughhttp://x.x.x.x:8200or
a dns or hosts file entry that points to that.
Binding a socket to 127.0.0.1 does not automatically make it available on the ethernet interface as well.
Thats why you can't connect to x.x.x.x:8200
You can bind port 8200 to all available interfaces (0.0.0.0) then it should work.
and
Localhost
refers to the term 'using on your computer offline', when you are not using internet connection and browsing offline then your server-side code is treated as localhost. On
the otherhand Web-host refers to a company that offers hosting services for your website. Your website resides on the hosting disk space, and bandwidth is managed by them. To run your site all steps are maintained by web hosting providers.
I think this is due to the problem of CSS in diffrent version. I think if you use diffrent css file for different IE it will ok. For example, if IE less than or equal to version 7 then the upper portions css will work. If IE is greater than 6 than then the
lower portion of css will work.
aspfun
Participant
1918 Points
1085 Posts
Pages layout different between localhost and web server
Apr 25, 2012 02:04 PM|LINK
I upgrade from IE8 to IE9 and found out that some pages layout different between localhost and web server.
How to fix them?
kappos
Member
74 Points
22 Posts
Re: Pages layout different between localhost and web server
Apr 25, 2012 02:06 PM|LINK
Caching?
ramiramilu
All-Star
97869 Points
14494 Posts
Re: Pages layout different between localhost and web server
Apr 25, 2012 02:39 PM|LINK
CSS issues, I can think of...see for example this thread...it lists some problems in both versions...http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/0e10c233-db7c-44aa-88ec-9a48759ca677
Thanks,
JumpStart
sriramabi
Contributor
4351 Points
1277 Posts
Re: Pages layout different between localhost and web server
Apr 25, 2012 04:41 PM|LINK
To answer your question.
127.0.0.1 is not just a different ip address to the machine ip address, it's a different interface as well. 127.0.0.1 should not be seen on the local network. It's a special internal IP address for the loopback adapter.
x.x.x.x will be your ethernet card.
by the way 'localhost' is simply an entry in your hosts file that points to 127.0.0.1
If you bind a socket to 127.0.0.1:8200 then only clients running locally will be able to access it and only with http://127.0.0.1:8200 or http://localhost:8200 (or a dns or hosts file entry that points to 127.0.0.1).
A socket bound to x.x.x.x:8200 will only be available through http://x.x.x.x:8200 or a dns or hosts file entry that points to that.
Binding a socket to 127.0.0.1 does not automatically make it available on the ethernet interface as well.
Thats why you can't connect to x.x.x.x:8200
You can bind port 8200 to all available interfaces (0.0.0.0) then it should work.
and
Localhost refers to the term 'using on your computer offline', when you are not using internet connection and browsing offline then your server-side code is treated as localhost.
On the otherhand Web-host refers to a company that offers hosting services for your website. Your website resides on the hosting disk space, and bandwidth is managed by them. To run your site all steps are maintained by web hosting providers.
mahedee
Member
450 Points
116 Posts
Re: Pages layout different between localhost and web server
Apr 25, 2012 05:07 PM|LINK
I think this is due to the problem of CSS in diffrent version. I think if you use diffrent css file for different IE it will ok. For example, if IE less than or equal to version 7 then the upper portions css will work. If IE is greater than 6 than then the lower portion of css will work.
<!--[if lt IE 7]>
<link rel="Stylesheet" href="Styles/StyleSheet.css" type="text/css" />
<link rel="Stylesheet" href="Styles/common.css" type="text/css" />
<![endif]-->
<!--[if gt IE 6]>
<link rel="Stylesheet" href="Styles/StyleSheet_IE7.css" type="text/css" />
<![endif]-->
You can try in this way. Hopefully, this will work.
If it helped you, Please marked it as answer.
Mahedee
Blog: http://mahedee.blogspot.com
Topspy
Contributor
3923 Points
836 Posts
Re: Pages layout different between localhost and web server
Apr 28, 2012 12:56 AM|LINK
Have you tried to make the site older IE compatible?
Asp.net Hosting | Windows Hosting | SQL Server Hosting
aspfun
Participant
1918 Points
1085 Posts
Re: Pages layout different between localhost and web server
May 01, 2012 03:15 PM|LINK
I found that IE8 is in web server.
Question:
Now, my pc is using IE9 but web server is using IE8.
When I open app from my pc but URL is point at web server(like http://web_server/myapp/, not http://localhost/myapp/ ), it is using IE9 or IE8?
Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: Pages layout different between localhost and web server
May 02, 2012 01:34 PM|LINK
Hi aspfun,
In my opinion, you are using IE9. The reason is that you are opening the app from you own pc.
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store