http://bugs.winehq.org/show_bug.cgi?id=13476
Summary: SQLyog community edition : Cannot connect to a remote DB through gSTM tunnel Product: Wine Version: 0.9.61. Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: winsock AssignedTo: wine-bugs@winehq.org ReportedBy: stefanpsz@gmail.com
Created an attachment (id=13396) --> (http://bugs.winehq.org/attachment.cgi?id=13396) Results of WINEDEBUG=+winsock wine SQLyog.exe > SQLyog-debug.txt 2>&1
Hi
Since wine 0.9.61 (previous versions worked just fine) I am having problems connecting to a VPN remote database through ssh tunnel forwarding using gSTM. My localhost is set to "stefan" and the gSTM port 33061 is forwarded to port 3306 on the remote machine. Connections to a local database on my machine works OK, and all other internet connections work OK as well. SQLyog does not crash, it only displays a standard error message complaining no connectivity to the DB. Every time I downgrade to 0.9.60 it starts to work again.
regards
Stefan Pszczolkowski
http://bugs.winehq.org/show_bug.cgi?id=13476
--- Comment #1 from Kai Blin kai.blin@gmail.com 2008-05-27 09:25:50 --- Could you please run a regression test? http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=13476
--- Comment #2 from Kai Blin kai.blin@gmail.com 2008-05-27 09:30:53 --- On a second thought, can you try to set your local host name to "localhost" instead of "stefan"? I see in the winsock trace that it's trying to bind to 127.12.34.56, which is the address we use to try and work around the fad that getent hosts `hostname` resolves to loopback on most modern linux distros, which breaks networking for many windows apps. This shouldn't happen if your setting the local hostname to "localhost".
http://bugs.winehq.org/show_bug.cgi?id=13476
Stefan stefanpsz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #3 from Stefan stefanpsz@gmail.com 2008-05-27 10:26:42 --- Thanks!. It actually solved the problem.
Just for curiosity, why previous versions of wine worked with "stefan" as hostname?
http://bugs.winehq.org/show_bug.cgi?id=13476
--- Comment #4 from James Hawkins truiken@gmail.com 2008-05-27 10:27:51 --- Shouldn't this be invalid?
http://bugs.winehq.org/show_bug.cgi?id=13476
Kai Blin kai.blin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED |
--- Comment #5 from Kai Blin kai.blin@gmail.com 2008-05-27 16:59:08 --- It's actually not fixed yet.
The patch introduced for 0.9.61 is a hack to make gethostbyname(name) return 127.12.34.56 instead of 127.0.0.1 if name is not "localhost". This is to make bind aware that some stupid windows program tried to bind to the IP with the default route. However, I forgot to fix "connect" to change 127.12.34.56 back to 127.0.0.1, as on connect this should still work.
Of course one could argue that you should always use "localhost" if you want to connect to 127.0.0.1.
I'm preparing a patch to address the connect issue.
http://bugs.winehq.org/show_bug.cgi?id=13476
Kai Blin kai.blin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1
--- Comment #6 from Kai Blin kai.blin@gmail.com 2008-05-27 17:00:47 --- Bug confirmed.
http://bugs.winehq.org/show_bug.cgi?id=13476
Kai Blin kai.blin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED
--- Comment #7 from Kai Blin kai.blin@gmail.com 2008-05-29 03:06:33 --- Patch comitted as 36d63105991abef1612433e18207624f2f9e429e
http://bugs.winehq.org/show_bug.cgi?id=13476
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2008-05-31 04:19:42 --- Closing bugs fixed in 1.0-rc3.
https://bugs.winehq.org/show_bug.cgi?id=13476
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |36d63105991abef1612433e1820 | |7624f2f9e429e CC| |focht@gmx.net