Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 通过代理连接到PostgreSQL_C#_Database_Winforms_Npgsql - Fatal编程技术网

C# 通过代理连接到PostgreSQL

C# 通过代理连接到PostgreSQL,c#,database,winforms,npgsql,C#,Database,Winforms,Npgsql,我通过Npgsql在我的C#Winform项目PostgreSQL中使用。我使用以下连接字符串将我的应用程序连接到PostgreSQL: String connstring = String.Format("Server={0};Port={1};" + "User Id={2};Password={3};Database={4};", "192.168.22.1", "5432", "postgres",

我通过
Npgsql
在我的C#Winform项目
PostgreSQL
中使用。我使用以下连接字符串将我的应用程序连接到PostgreSQL:

 String connstring = String.Format("Server={0};Port={1};" +
                    "User Id={2};Password={3};Database={4};",
                    "192.168.22.1", "5432", "postgres",
                    "password", "test" );

我想问一下,如果我在到达DB之前通过xxx.xxx.xxx.xx代理IP,连接字符串的形式是什么?

什么样的代理?如果它是一个普通的IP转发,您只需要使用它的IP和端口,而不是真正的服务器。否则:是否要使用SOCKS4或SOCKS5代理?支持
CONNECT
的HTTP代理?还有别的吗?