rushter / socks5

A toy socks 5 server written in Python
MIT License
167 stars 64 forks source link

Sending through particular port #4

Closed dhruvrauthan closed 1 year ago

dhruvrauthan commented 1 year ago

Hi,

I want to use this proxy, but send the packets through a specific port (for example through port 3000). So the connection would be from 127.0.0.1:3000 to remote_ip:443 in the case of an HTTPS connection.

How do I achieve this? Any help would be much appreciated!

Thanks!

rushter commented 1 year ago

Hardcode the port https://github.com/rushter/socks5/blob/5703d53966ec887d5b4293da8ba2c0b71d29a396/server.py#L62