C
C#12mo ago
BlackNet

❔ HttpClient.PostAsync hangs and times out if firewall is turned on

Anyone experienced this? Using this api https://api.imgbb.com. I have 443 and 80 port opened in firewall. Using ufw firewall on arch server btw.
2 Replies
BlackNet
BlackNet12mo ago
alright, figured it out, httpclient is using ipv6 using DOTNET_SYSTEM_NET_DISABLEIPV6=1 enviroment variable fixed it i guess firewall doesn't like ipv6
Accord
Accord12mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.