Открытые порты в целях разработки

Я делаю некоторый Java Разработка ME в моем совершенно новом ноутбуке Ubuntu, происходя из теперь замененного Windows Vista один.

То, что я пытаюсь сделать, выполняется Мобильное Средство моделирования, которое действует как Сервер HTTP - получает соединения с портом 80-и выполняет другой, который действует как клиент, выполняя обоих одновременно. В Windows Vista это работает без проблемы, когда я портирую Windows 7 I кода ми, должен выключить брандмауэр, чтобы заставить это произойти.

Однако теперь в моем ноутбуке Ubuntu я не могу получить ту работу. Я, читая некоторые сообщения, что системам Unix не нужен Брандмауэр, потому что несколько портов заблокированы по умолчанию, таким образом, мой вопрос состоит в том, как я могу открыть это порты для продолжения разработки. Я буду выполнять также запросы SMS и Bluetooth, таким образом, я хотел бы тот любой запрос от localhost до localhost, не заблокирован.

Sytem: Dell Inspiron под управлением Ubuntu 11.1 64 бита. Разработка сделана в Netbeans с помощью JDK 1.7 32 бита

Обновление:

Согласно просьбе вот Отслеживание стека:

java.io.IOException: ServerSocket Open
    at com.sun.midp.io.j2me.serversocket.Socket.open(Socket.java:69)
    at com.sun.midp.io.j2me.socket.Protocol.openPrim(Protocol.java:128)
    at javax.microedition.io.Connector.openPrim(Connector.java:329)
    at javax.microedition.io.Connector.open(Connector.java:222)
    at javax.microedition.io.Connector.open(Connector.java:198)
    at javax.microedition.io.Connector.open(Connector.java:180)
    at pe.edu.pucp.teleprocesamiento.server.http.HttpConnectionProcessor.run(HttpConnectionProcessor.java:43)

И также iptables -L -nv вывод:

Chain INPUT (policy ACCEPT 35777 packets, 34M bytes)
 pkts bytes target     prot opt in     out     source               destination         
35779   34M ufw-before-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
35779   34M ufw-before-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
35777   34M ufw-after-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
35777   34M ufw-after-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
35777   34M ufw-reject-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
35777   34M ufw-track-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ufw-before-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 ufw-before-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 ufw-after-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 ufw-after-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 ufw-reject-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 31810 packets, 3935K bytes)
 pkts bytes target     prot opt in     out     source               destination         
31812 3935K ufw-before-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
31812 3935K ufw-before-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
31812 3935K ufw-after-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
31812 3935K ufw-after-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
31812 3935K ufw-reject-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
31812 3935K ufw-track-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain ufw-after-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-after-input (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-after-logging-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-after-logging-input (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-after-logging-output (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-after-output (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-before-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-before-input (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-before-logging-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-before-logging-input (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-before-logging-output (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-before-output (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-reject-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-reject-input (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-reject-output (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-track-input (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain ufw-track-output (1 references)
 pkts bytes target     prot opt in     out     source               destination  
2
задан 11 May 2013 в 20:17

1 ответ

Измените порт на что-то выше 1024. Только root может открывать порты < = 1024.

0
ответ дан 11 May 2013 в 20:17

Другие вопросы по тегам:

Похожие вопросы: