Ubuntu/Wine....winsock cannot connect

Questions about Wine on Linux
Post Reply
Ren
Level 1
Level 1
Posts: 6
Joined: Fri Jan 18, 2019 9:58 am

Ubuntu/Wine....winsock cannot connect

Post by Ren » Sat Jan 19, 2019 9:04 am

Hello,
I made a program in Wine using Winsock but i cannot connect...
it fails with a message...
It is nested too much...
Using setcap ?
Or anything else... ?
Thank you for the help...
greetings,
Fred

User avatar
DarkShadow44
Level 7
Level 7
Posts: 973
Joined: Tue Nov 22, 2016 5:39 pm

Re: Ubuntu/Wine....winsock cannot connect

Post by DarkShadow44 » Sun Jan 20, 2019 4:28 am

Please keep in mind that we can't read your thoughts, you have to provide us more information to work with. We have no idea what you're doing, and no idea what error messages you get.

Ren
Level 1
Level 1
Posts: 6
Joined: Fri Jan 18, 2019 9:58 am

Re: Ubuntu/Wine....winsock cannot connect

Post by Ren » Sun Jan 20, 2019 7:04 am

Well I use linux (of course) but in Wine I program using Pelle's C...
As I am used to Pelle's C and I like it...
But the problem is that when making a Winsock program in Wine under Pelle's C
then it runs but... sending do fail...
as it is nested too deep...
Greetings,
Fred

User avatar
DarkShadow44
Level 7
Level 7
Posts: 973
Joined: Tue Nov 22, 2016 5:39 pm

Re: Ubuntu/Wine....winsock cannot connect

Post by DarkShadow44 » Sun Jan 20, 2019 11:18 pm

I'm sorry if I repeat myself, but you've not given us anything to work with. To help you, we need a clear description of the problem.

Ren
Level 1
Level 1
Posts: 6
Joined: Fri Jan 18, 2019 9:58 am

Re: Ubuntu/Wine....winsock cannot connect

Post by Ren » Mon Jan 21, 2019 7:34 am

Schermafdruk_2019-01-21_13-27-59.png
Schermafdruk_2019-01-21_13-27-59.png (2.92 KiB) Viewed 1208 times
Schermafdruk_2019-01-21_13-27-59.png
Schermafdruk_2019-01-21_13-27-59.png (2.92 KiB) Viewed 1208 times
Well... I have Wine in Linux Lite...
I make via compiler Pelle's C a program to connect to other computers....
It is written in C... and it works ok...
I am a programmer after all...
But under Wine I cannot connect...
Schermafdruk_2019-01-21_13-27-59.png
Schermafdruk_2019-01-21_13-27-59.png (2.92 KiB) Viewed 1208 times
Why and how can I not connect under Wine...
My program tries to... but fails...
Thanks you

User avatar
DarkShadow44
Level 7
Level 7
Posts: 973
Joined: Tue Nov 22, 2016 5:39 pm

Re: Ubuntu/Wine....winsock cannot connect

Post by DarkShadow44 » Mon Jan 21, 2019 12:50 pm

The error code 10022 means Invalid argument. But to know what, I'd need to see the code.

Ren
Level 1
Level 1
Posts: 6
Joined: Fri Jan 18, 2019 9:58 am

Re: Ubuntu/Wine....winsock cannot connect

Post by Ren » Wed Apr 24, 2019 2:01 pm

The problem is known now...
But I cannot find how I can find the registers in Wine...

If one reads the last lines in this link:
https://social.msdn.microsoft.com/Forum ... ?forum=wsk

then you see that...


"FINALY I got the fix for this problem.
After investigating several days with Microsoft, they complained that's not a bug, it's by design.
This issue occurs because of a change in the behavior of Windows Filtering Platform (WFP) that was implemented in Windows 7 and in Windows Server 2008 R2
That was not a proper answer for me, that's why we escalated it over HP support.
They found a fix:
You can turn of this new behavior by editing the registry.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FltMgr
add this entry
Name: UseTildeShortcut(DWORD)
Data: 1
You have to add this entry on the client machine."

Ok that would and will work in windows 7.... etc...
But how implement these changes in Wine ????

Greetings,
Fred

User avatar
DarkShadow44
Level 7
Level 7
Posts: 973
Joined: Tue Nov 22, 2016 5:39 pm

Re: Ubuntu/Wine....winsock cannot connect

Post by DarkShadow44 » Wed Apr 24, 2019 4:01 pm

I don't know if wine even has that filtering platform. Are you sure this is the same issue on Wine?

Ren
Level 1
Level 1
Posts: 6
Joined: Fri Jan 18, 2019 9:58 am

Re: Ubuntu/Wine....winsock cannot connect

Post by Ren » Thu Apr 25, 2019 2:50 pm

Well... for what I did read while searching... is that winsock must (did ?) work in Wine as Wine was programmed in this way... and indeed winsock is in Wine... you can find it...
But it doesn't work... only... ???? if one can start Wine in windows 95 mode then it would work...
But win 95 mode in Wine is gone and is it worth to try ?
So my program is not the problem... it works via winsock in windows 7....
I try to find how and why I can use it under Wine... it is all a bit strange...
I want to work further under Wine... and not Win 7 as I use Ubuntu Lite
for years... and Pelle's C works well... only winsock and Wine ?????
Greetings and Thanks...
Fred

User avatar
DarkShadow44
Level 7
Level 7
Posts: 973
Joined: Tue Nov 22, 2016 5:39 pm

Re: Ubuntu/Wine....winsock cannot connect

Post by DarkShadow44 » Thu Apr 25, 2019 2:56 pm

Ofc winsock is in wine. You can set wine to win95 when you create a 32bit WINEPREFIX. But I doubt this helps.

lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Ubuntu/Wine....winsock cannot connect

Post by lahmbi5678 » Sat May 04, 2019 4:52 am

There are some winetricks options related to sockets, etc. Maybe try "winetricks winhttp", "winetricks wininet". You could set the Windows version in winecfg to e.g. "Windows XP" or earlier.

Imho it would be useful, if you could create a little sample application to demonstrate the bug and then file a bug report in wine's bugzilla, attach the sample application to the bug report. Your bug probably wouldn't get highest priority, but sooner or later it would be fixed, or you'd at least get a kind of explanation.

Ren
Level 1
Level 1
Posts: 6
Joined: Fri Jan 18, 2019 9:58 am

Re: Ubuntu/Wine....winsock cannot connect

Post by Ren » Mon Sep 30, 2019 10:38 am

I did try winsock under Wine 98 and 95... same result... error...

Post Reply