I wanted to host a TW cloud server on my computer and access it from another computer, but I didn't find how to.
Firstly, I set the server IP to my local IP address to try to access it from my local network: I don't get any error, but I can't connect the scratch project to the server (I set the same IP:port as the server in the URL), either on a computer on the local network or on the computer hosting the server...
I also tried with my external IP address (as a server IP) and by configuring port forwarding to the local IP address of the computer hosting the server: this time I get the following error:
Traceback (most recent call last):
File "/mnt/0CB604AD0CB604AD/Téléchargements/Scratchattach.py", line 53, in <module>
server = sa.init_cloud_server( server_ip, server_port, length_limit=None, allow_non_numeric=True, whitelisted_projects=None, allow_nonscratch_names=True, blocked_ips=[], sync_players=True, log_var_sets=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jloau/.venv/lib/python3.12/site-packages/scratchattach/eventhandlers/cloud_server.py", line 371, in init_cloud_server
return TwCloudServer(
^^^^^^^^^^^^^^
File "/home/jloau/.venv/lib/python3.12/site-packages/scratchattach/eventhandlers/cloud_server.py", line 202, in __init__
SimpleWebSocketServer.__init__(self, hostname, port=port, websocketclass=websocketclass)
File "/home/jloau/.venv/lib/python3.12/site-packages/SimpleWebSocketServer/SimpleWebSocketServer.py", line 622, in __init__
self.serversocket.bind(hostInfo[0][4])
OSError: [Errno 99] Cannot assign requested address
Exception ignored in: <function BaseEventHandler.__del__ at 0x7df1baed3060>
Traceback (most recent call last):
File "/home/jloau/.venv/lib/python3.12/site-packages/scratchattach/eventhandlers/_base.py", line 74, in __del__
self.stop()
File "/home/jloau/.venv/lib/python3.12/site-packages/scratchattach/eventhandlers/cloud_server.py", line 347, in stop
BaseEventHandler.stop(self, wait_call_threads)
File "/home/jloau/.venv/lib/python3.12/site-packages/scratchattach/eventhandlers/_base.py", line 82, in stop
thread = self._thread
^^^^^^^^^^^^
AttributeError: 'TwCloudServer' object has no attribute '_thread'
So I guess I am doing something wrong... Does hosting a TW cloud server at home and access it from somewhere else possible?
Scratchattach version : 3.0.0b4
Tried OS : Windows 11, Linux Mint 22, Android 7.1.1 (using Pydroid)
I wanted to host a TW cloud server on my computer and access it from another computer, but I didn't find how to.
Firstly, I set the server IP to my local IP address to try to access it from my local network: I don't get any error, but I can't connect the scratch project to the server (I set the same IP:port as the server in the URL), either on a computer on the local network or on the computer hosting the server...
I also tried with my external IP address (as a server IP) and by configuring port forwarding to the local IP address of the computer hosting the server: this time I get the following error:
So I guess I am doing something wrong... Does hosting a TW cloud server at home and access it from somewhere else possible?
Scratchattach version : 3.0.0b4
Tried OS : Windows 11, Linux Mint 22, Android 7.1.1 (using Pydroid)