Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makarasty/ws-proxy-server
π The program I wrote because I had nothing else to do, it allows you to connect to a remote websoket, this program can be used in different ways, I just gave you an example of my code.
https://github.com/makarasty/ws-proxy-server
java java-8 java8 jdk jdk8 multiproxy mysql mysql-connector proxy proxy-server proxysql
Last synced: about 1 month ago
JSON representation
π The program I wrote because I had nothing else to do, it allows you to connect to a remote websoket, this program can be used in different ways, I just gave you an example of my code.
- Host: GitHub
- URL: https://github.com/makarasty/ws-proxy-server
- Owner: makarasty
- License: mit
- Created: 2023-08-28T10:47:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-30T08:25:42.000Z (over 1 year ago)
- Last Synced: 2024-10-14T04:21:13.101Z (3 months ago)
- Topics: java, java-8, java8, jdk, jdk8, multiproxy, mysql, mysql-connector, proxy, proxy-server, proxysql
- Language: Java
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ws-proxy-server
The program I wrote because I had nothing else to do, it allows you to connect to a remote websoket, this program can be used in different ways, I just gave you an example of my code.# Example of use:
This is not a call to action! Do everything at your own risk! In this example I have a MySQL database on (mysql's mypy) and port 3306, the problem is that I can't connect to it because my ISP has blocked connections to (mysql's mypy), since it's too easy to use vpn I went the other way and wrote a code that will pass connections and data through another mypy address, the code is quite simple and easy to read. I compiled Main.java into proxy.jar and sent it to a friend to run with java -jar proxy.jar, the friend did it and now I can connect to (mysql IP) from my computer where (mysql IP) is blocked.My configuration that I gave to my friend:
**(config.properties):**
`proxyPort = 40000`
`targetAddress = (mysql IP)`
`targetPort = 3306`If you don't have such a friend, you can find any java hosting service and run the proxy there, as long as it doesn't violate the hosting rules!
# Dependencies
- java 8+
- open port
- white ip-adress# Π‘ompiling
`javac -source 8 -target 8 Main.java`
`jar cvfm proxy.jar MANIFEST.MF *.class`# Starting
`java -jar proxy.jar`# Screenshots
![image](https://github.com/makarasty/ws-proxy-server/assets/71918286/3e34a3cf-6ee5-4247-91b0-b00743ff3654)
![image](https://github.com/makarasty/ws-proxy-server/assets/71918286/d3dcf07e-5ede-4fdc-8983-c6d249191e97)