Port access

Briefly describe your issue below:
Hi all,
i have a client that needs access to port 6112 , the port is forwarded on my router, ufw is not active.
When i run client it checks the port (6112) connectivity and if not forwarded it swithces to a random port for stun connectivity which is no good.
When checking if port is open with nmap in win 8.1 port is open,when checking with nmap in parrot the port is closed.
Is there a configuration file or another program that i need to configure to open port 6112 in parrot?

Any help much appreciated, thank you in advance for your time and knowledge.


What version of Parrot are you running? (include version, edition, and architecture)4.4 64-bit,4.18.0-parrot10-amd64 x86_64

What method did you use to install Parrot? (Debian Standard / Debian GTK / parrot-experimental)debian gtk

Configured to multiboot with other systems? (yes / no)yes win 8.1

If there are any similar issues or solutions, link to them below:

If there are any error messages or relevant logs, post them below:

you can check in parrot for listening (open) ports using

netstat
➜  # sudo netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name    
tcp        0      0 127.0.0.1:5985          0.0.0.0:*               LISTEN      0          3302693    27881/python2.7     
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      0          3302696    27881/python2.7     
tcp        0      0 127.0.0.1:9390          0.0.0.0:*               LISTEN      0          3335052    31194/openvasmd     
tcp        0      0 127.0.0.1:9392          0.0.0.0:*               LISTEN      0          3336302    31191/gsad          
tcp        0      0 127.0.0.1:80            0.0.0.0:*               LISTEN      0          3335220    31195/gsad          
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      112        3232762    23575/postgres      
tcp6       0      0 ::1:5432                :::*                    LISTEN      112        3232761    23575/postgres      
udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          3209262    19949/dhclient      

127.0.0.1:5985 indicates localhost (127.0.0.1) followed by port number :5985
so we have a listening socket (port) on 5985 running

what application you are trying to use?

EDIT:
6112 seems to be a “gaming” port --> Blizzard, GuildWars … Am I correct?

yes its a gaming port for sup com forged alliance cummunity based client of chat, gaming and downloading mods etc.
the app is called downlords faf client.
My problem is port 6112 is closed and i dont know why since its open on my router. i have no active software firewall blocking port so i dont know why its unreachable.

Patching com/sun/webkit/WebPage …
com/sun/webkit/WebPage patching succeeded!
Patching com/sun/javafx/webkit/prism/WCGraphicsPrismContext …
com/sun/javafx/webkit/prism/WCGraphicsPrismContext patching succeeded!
2018-11-26 20:36:28.232 INFO 12830 — [pool-2-thread-5] c.f.client.upnp.WeUpnpServiceImpl : Found UPnP capable gateway at http://192.168.1.1:80
2018-11-26 20:36:28.245 INFO 12830 — [pool-2-thread-5] c.f.client.upnp.WeUpnpServiceImpl : Port 6112 is already mapped to 192.168.1.20:6112, not changing anything
2018-11-26 20:36:28.546 INFO 12830 — [pool-2-thread-5] c.f.c.c.ConnectivityCheckTask : Testing public connectivity of game port: 6112
2018-11-26 20:36:29.274 INFO 12830 — [pool-2-thread-3] c.f.client.update.CheckForUpdateTask : Current version is 0.9.0-beta-rc.3, newest version is v0.9.2-beta
2018-11-26 20:36:38.643 INFO 12830 — [ Thread-17] c.f.c.c.ConnectivityServiceImpl : Switching to random port for STUN connectivity
2018-11-26 20:36:38.648 WARN 12830 — [pool-2-thread-1] com.faforever.client.net.SocketUtil : Socket has been closed: (Socket closed)
2018-11-26 20:36:38.646 INFO 12830 — [ Thread-17] c.f.c.c.ConnectivityServiceImpl : Opened public UDP socket: 0.0.0.0/0.0.0.0:57779
2018-11-26 20:36:38.783 INFO 12830 — [lication Thread] c.f.c.c.ConnectivityServiceImpl : Connectivity check successful, state: STUN, address: 89.109.79.161:57779

this is the client in terminal when starting , it switches to random port cause the port 6112 is not forwarded, im assuming a program , configuration file is blocking access to port cause the port is open in my dual boot win 8.1. any ideas?

this is the output of nmap confirming the port is closed.
Starting Nmap 7.70 ( https://nmap.org ) at 2018-11-26 21:02 GMT
Nmap scan report for 192.168.1.20
Host is up (0.000066s latency).

PORT STATE SERVICE
6112/udp closed dtspcd

Nmap done: 1 IP address (1 host up) scanned in 0.18 seconds

nope sorry, no idea

So you are hosting the game on a Parrot system?

The game will open the ports it wants (or what it has configured).

You then have to port-forward from your router to the Parrot/server port the game is using.

Like san7 said, if you run `sudo netstat -ntlp’ on the server, you will see what ports the application is listening on.

Basically i do testing on the game patches to see if the changes made by the patches are working correctly.
i dont need to check netstat (even though i have )cause the client in terminal( check terminal info for client above) already tells me what port the client is listening on when it cant connect on port 6112 in the case above its port 57779 and this random port changes everytime i start the client. The client switches port cuase 6112 is not reachable and the game always uses port 6112
Any port other than port 6112 is not an option, it has to be port 6112 otherwise i get errors with game like desyncs etc. The port 6112 is already forwaded on my router, under windows the port is open and evrything works fine, under parrot port 6112 is closed as confirmed by nmap info above and i dont know why, if the port is already forwarded and i have no active firewall why is the port closed

Ahhh i thought you were hosting the game server…

A port wont open until an application or service has opened it.
6112 isnt a privileged port, so you dont need root access. I think the client will just need some additional configuration. I assume you are referencing some documentation during this setup? could you link it?

The whole point in STUN is to discover external IP and port translation. Some good documentation here: https://www.3cx.com/blog/voip-howto/stun-voip-1/.

Hi Matt,

Let me rephrase, the problem is not the client (the client just confirms to me as does nmap that port 6112 is closed)the problem is the port 6112 not being forwrded on parrot, as you can see above the port is forwarded on my router i have no active firewall so the port should be open and reachable.When the game is running i will get desyncs with other players cause port 6112 is not forwrded under parrot, port 6112 is the port the game uses to connect to other players.
“A port wont open until an application or service has opened it”
The client connects to port 6112 on startup ( check terminal info above------2018-11-26 20:36:28.546 INFO 12830 — [pool-2-thread-5] c.f.c.c.ConnectivityCheckTask : Testing public connectivity of game port: 6112)
It switches to a random port because port 6112 is not forwrded which is not the case as you can see from my router settings above( the client on start up also confirms that port 6112is already mapped to my local ip192.168.1.20------2018-11-26 20:36:28.245 INFO 12830 — [pool-2-thread-5] c.f.client.upnp.WeUpnpServiceImpl : Port 6112 is already mapped to 192.168.1.20:6112, not changing anything). When a port is not reachable it is usually down to a firewall but since its not my router firewall and i have no active software firewall then somthing else in parrot is blocking access?
this is the github for the client,https://github.com/FAForever/downlords-faf-client/releases/tag/v0.9.2-beta
and this is connection issues troubleshooting page, https://wiki.faforever.com/index.php?title=Connection_issues_and_solutions
pls let me know if i am not clear in my explanation.
By the way thx for your help and time its well appreciated.

Ok so this is some peer to peer thing.

I just cant see Parrot blocking that port. It has no reason to, especially if it’s allowing it to open a random port afterwards. You could always try running it as root, but i doubt you will see any difference.

Not really sure what to suggest. I will have a read.

Yeah the game connects to players using p2p, there is a few players running the game on linux like ubuntu and mint etc they have their ports forwarded and they have no problems with connection on port 6112.

“I just cant see Parrot blocking that port. It has no reason to, especially if it’s allowing it to open a random port afterwards” yeah it makes no sense.

I will try running as root when i log in to parrot

Dont log in as root.
Just use sudo or su

1 Like

Most likely needing router config on your router IP page

under sudo i get java error relating to the client wanting java10(so i was told) butwithout sudo(normal startup) no error and it starts fine, doesnt make sense to me.
I am going to uninstall and try the python version of the client, if no joy, i will leave it for a later date, wasted to much time already on this.

Thx for your help always appreciated.

1 Like

so you have changed your router settings (i just want to make sure im clear on this) and all dependencies are met (usually you can use the kali guides on the githubs to install the depends). any other security gateway? what brand is your router (its always been a network config issue for problems ive had regarding port forwarding so thats my natural inclination to start at). next i suppose i have had luck with bypassing firejail hangs and bugs with the --noprofile command but after that i am lost without some sort of deeper understanding of the network, system and specific behaviors and needs of the packages.