You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to map port on openwrt? Maybe a firewall problem?
root@OpenWrt:~/natpmp# python natpmp_client.py 60009 60009
Traceback (most recent call last):
File "natpmp_client.py", line 37, in
main()
File "natpmp_client.py", line 34, in main
print NATPMP.map_port(protocol, public_port, private_port, lifetime, gateway_ip=gateway)
File "/root/natpmp/NATPMP.py", line 333, in map_port
port_mapping_response = send_request_with_retry(gateway_ip, port_mapping_request, response_data_class=PortMapResponse, retry=retry)
File "/root/natpmp/NATPMP.py", line 357, in send_request_with_retry
data,source_addr = read_response(gateway_socket, n * request.retry_increment)
File "/root/natpmp/NATPMP.py", line 348, in read_response
data,source_addr = resp_socket.recvfrom(responseSize)
socket.error: [Errno 146] Connection refused
The text was updated successfully, but these errors were encountered:
Possibly. The gateway socket isn't responding, meaning that it couldn't write to the NATPMP port (UDP 5351) on the router at all. Make sure that the NATPMP server is on ( http://wiki.openwrt.org/doc/howto/upnp ) and the port isn't being blocked.
I should probably catch that error in the library so it's not some random socket error being printed to the user's screen.
Failed to map port on openwrt? Maybe a firewall problem?
root@OpenWrt:~/natpmp# python natpmp_client.py 60009 60009
Traceback (most recent call last):
File "natpmp_client.py", line 37, in
main()
File "natpmp_client.py", line 34, in main
print NATPMP.map_port(protocol, public_port, private_port, lifetime, gateway_ip=gateway)
File "/root/natpmp/NATPMP.py", line 333, in map_port
port_mapping_response = send_request_with_retry(gateway_ip, port_mapping_request, response_data_class=PortMapResponse, retry=retry)
File "/root/natpmp/NATPMP.py", line 357, in send_request_with_retry
data,source_addr = read_response(gateway_socket, n * request.retry_increment)
File "/root/natpmp/NATPMP.py", line 348, in read_response
data,source_addr = resp_socket.recvfrom(responseSize)
socket.error: [Errno 146] Connection refused
The text was updated successfully, but these errors were encountered: