我无法从任何机器,但本地主机访问氮/ INET服务器 [英] I cannot access to nitrogen/inets server from any machine but the localhost
问题描述
所以我遇到了Nitrogen教程,Demo和docs,并开始根据自己的inets / nitrogen站点进行一些测试。一切顺利,直到我想尝试从另一台电脑访问我的新网站。当然,我必须首先调整我的盒子,以便将请求转发到lan ...但是经过一天的搜索,阅读和测试,我仍然卡住了...
我已经测试过:
- 使用Intranet IP地址或
localhost从本地主机调用网站:OK - 来自本地主机,访问静态页面和不同的
my_page.erl路径:OK - 从另一台PC使用lan地址访问:I
可以使用wireshark捕获以太网帧,但是连接
失败超时。 - 使用wan地址从另一台PC访问:我可以
捕获以太网帧使用wireshark(在地址
翻译后),但连接失败超时。
- 访问从本地PC使用wan地址:我可以
抓住以太网帧和使用wireshark,但t - 我在代码中放了一些DEBUG宏,但没有达到。
- 我试过一个访问到一个静态文件:相同的行为。
- 我使用netstat -ap检查进程beam.smp正在侦听正确的端口:OK
- I使用smartsniff检查外部PC上的响应帧:对lan和wan访问没有响应。
- 我测试了不同的端口和端口路由。
我必须想念一些明显的东西,为了使这项工作有配置的东西吗?还是可以做一个测试?因为我没有更多的想法。
上下文:
- 浏览器firefox 16.0。 2和铬21.0.1138在Windows XP 32上运行
- 在Ubuntu 12.04上运行的服务器
- 默认的氮/应用程序(修改端口为8020)
- Erlang 15B02
- nprocreg,0.2.0
- parsetools,2.0.7
- common_test,1.6.2
- mnesia,4.7.1
- ssl,5.1
- public_key,0.16
- 编译器,4.8.2
- xmerl,1.3.2
- runtime_tools,1.8 .9
- 加密,2.2
- inets,5.9.1
- sasl,2.2.1
-
- stdlib,1.18.2
- 内核,2.15.2
我输入这个答案只是提到问题出现在我的防火墙配置中,因为Syhpoon指出,所以解决了。
$ b $对其他成员来说,我该怎么处理这个问题?我不认为这对其他人来说是一个很大的帮助,除了这是一个提醒我们所有坚持的人:
- 列出游戏中的所有元素
- 从我的朋友那里请求帮助...不要太晚:o)
我应该删除主题吗?
Thanks to many discussions in this forum, I found that I should be able to build the application I was planning to do for home usage based on Nitrogen.
So I ran into Nitrogen tutorials, Demo and docs, and start to do some tests based on the self contained inets/nitrogen site. Everything was going well until I wanted to try to access my new website from another PC. Of course I had to tune my box first in order to route wan requests to lan... But after a day searching, reading and testing, I am still stuck...
What I have tested:
- call the website from local host using intranet IP address or localhost: OK
- from local host, access to static pages and different "my_page.erl" path : OK
- access from another PC using lan address : I can catch the ethernet frames using wireshark, but the connexion fails with timeout.
- access from another PC using wan address : I can catch the ethernet frames using wireshark (after address translation), but the connexion fails with timeout.
- access from local PC using wan address : I can catch the ethernet frames out and in using wireshark but the connexion fails with timeout.
- I have put some ?DEBUG macros in my code: but none of them is reached.
- I tried an access to a static file: same behavior.
- I checked using netstat -ap that the process beam.smp is listening the right port: OK
- I checked for a response frame on external PC using smartsniff: no response for both lan and wan accesses.
- I tested different ports and port routing.
I must miss something obvious, is there something to configure in order to make this work? or a test I can do? because I have no more ideas.
context:
- browser firefox 16.0.2 and chromium 21.0.1138 running on windows XP 32
- server running on Ubuntu 12.04
- default nitrogen/inets application (modified port to 8020)
- Erlang 15B02
- nprocreg, 0.2.0
- parsetools, 2.0.7
- common_test, 1.6.2
- mnesia, 4.7.1
- ssl, 5.1
- public_key, 0.16
- compiler, 4.8.2
- xmerl, 1.3.2
- runtime_tools, 1.8.9
- crypto, 2.2
- inets, 5.9.1
- sasl, 2.2.1
- stdlib, 1.18.2
- kernel, 2.15.2
I enter this answer just to mention that the problem was in my firewall configuration as Syhpoon pointed it, and so it is solved.
To other members, what should I do with this question? I don't think it is a great help for other people apart that it is a reminder for all of us who are stuck to:
- List all the elements playing in the game
- "Ask a little help from my friends" ... not too late :o)
Should I delete the topic?
这篇关于我无法从任何机器,但本地主机访问氮/ INET服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!