Title: Http::fsockopen_remote_socket
Published: March 29, 2023
Last modified: November 8, 2023

---

# Http::fsockopen_remote_socket( string $remote_socket )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wporg-requests-proxy-http/fsockopen_remote_socket/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wporg-requests-proxy-http/fsockopen_remote_socket/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wporg-requests-proxy-http/fsockopen_remote_socket/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wporg-requests-proxy-http/fsockopen_remote_socket/?output_format=md#wp--skip-link--target)

Alter remote socket information before opening socket connection

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wporg-requests-proxy-http/fsockopen_remote_socket/?output_format=md#parameters)󠁿

 `$remote_socket`stringrequired

Socket connection string

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wporg-requests-proxy-http/fsockopen_remote_socket/?output_format=md#source)󠁿

    ```php
    public function fsockopen_remote_socket(&$remote_socket) {
    	$remote_socket = $this->proxy;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/requests/src/proxy/http.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/Requests/src/Proxy/Http.php#L130)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/Requests/src/Proxy/Http.php#L130-L132)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wporg-requests-proxy-http/fsockopen_remote_socket/?output_format=md#changelog)󠁿

| Version | Description | 
| [1.6](https://developer.wordpress.org/reference/since/1.6/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwporg-requests-proxy-http%2Ffsockopen_remote_socket%2F)
before being able to contribute a note or feedback.