Port forwarding in Wine

Questions about Wine on Linux
Locked
pascal06
Newbie
Newbie
Posts: 1
Joined: Mon Dec 06, 2021 3:05 pm

Port forwarding in Wine

Post by pascal06 »

Hello everybody,
it's the first time I post here, so be indulgent with me, thanks lot in advance ;)
So, I use a program that can connect to an online database through the TCP port number 1433. I first opened it in my internet router, but the program still can't connect. I checked my Xubuntu firewall status (sudo ufw status), and it is disabled.
In wine, is there a way to open a specific port ?
Or do I need to first allow this port in ufw and then activate it ?
Thanks a lot in advance.

Pascal
Ebiko
Level 1
Level 1
Posts: 9
Joined: Fri Dec 03, 2021 8:30 am

Re: Port forwarding in Wine

Post by Ebiko »

Wine doesn't block anything.
Everything from wine related to internet and network is passed to the kernel , which decides what is routed where.

Meaning the only thing that is blocking you is either UFW (but if it's disabled it doesn't block anything) or your router eventually.

Can you connect to the Database from your host system ? (XUbuntu apparently)

As fast as I know, you can use any port from within wine.
Also check if your host system doesn't have this port allocated already.
Because if so, it will fail.
Or use iptables to do proper Port Forwarding inside your Host. In case your Database is local.
Locked