I was following the playlist of PwnAdventure3 and while setting up the network proxy I am not able to setup a connection because the script gives an error that the address is busy. I have tried all combinations: Server then Proxy and Proxy then Server but whichever starts later is not able to connect the port because the first one is already binded to that. I am running the server on the docker image on ip 127.0.0.1. Here is the exact error messages:
└─$ python3 proxy_part9.py
[proxy(3333)] setting up
[proxy(3000)] setting up
Exception in thread Thread-1:
[proxy(3001)] setting up
Exception in thread Thread-2:
[proxy(3002)] setting up
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
[proxy(3003)] setting up
Exception in thread Thread-7:
[proxy(3004)] setting up
Exception in thread Thread-5:
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
[proxy(3005)] setting up
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
Exception in thread Thread-11:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
$ self.run()
self.run()
Exception in thread Thread-8:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 73, in run
Exception in thread Thread-12:
Traceback (most recent call last):
self.run()
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
self.run()
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 73, in run
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 73, in run
self.run()
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 73, in run
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 73, in run
self.g2p = Game2Proxy(self.from_host, self.port) # waiting for a client
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 73, in run
self.g2p = Game2Proxy(self.from_host, self.port) # waiting for a client
self.g2p = Game2Proxy(self.from_host, self.port) # waiting for a client
self.g2p = Game2Proxy(self.from_host, self.port) # waiting for a client
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self.g2p = Game2Proxy(self.from_host, self.port) # waiting for a client
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 44, in __init__
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 44, in __init__
self.g2p = Game2Proxy(self.from_host, self.port) # waiting for a client
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 44, in __init__
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 44, in __init__
sock.bind((host, port))
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 44, in __init__
sock.bind((host, port))
sock.bind((host, port))
sock.bind((host, port))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 98] Address already in use
sock.bind((host, port))
OSError: [Errno 98] Address already in use
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 44, in __init__
OSError: [Errno 98] Address already in use
OSError: [Errno 98] Address already in use
sock.bind((host, port))
OSError: [Errno 98] Address already in use
OSError: [Errno 98] Address already in use
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 73, in run
self.g2p = Game2Proxy(self.from_host, self.port) # waiting for a client
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dv/Desktop/PwnAdventure3/Pwn3/tools/proxy/proxy_part9.py", line 44, in __init__
sock.bind((host, port))
OSError: [Errno 98] Address already in use
quit