Comments (9)
Well it seems you don't have permission to bind to the port 81 and 82.
Go into the userdata.conf and change the base port to something > 1000. You could also start node with root but that's really not a good idea.
If you don't want the BWI to run you can also just disable it.
from albot.
I changed the number, and I get errors like this:
GET <url>:81/socket.io/?EIO=3&transport=polling&t=MSIHdy2 net::ERR_CONNECTION_TIMED_OUT
Is this something to do with the default config?
from albot.
Mmh, what have you done to fix the issue? It seems you haven't changed the port so I assume you gave it permission to run on that port. It might be because you have a firewall rule in place to block the access.
from albot.
@NexusNull I did change the port in my config, but the socket.js file seems to assume that it's still on port 81.
from albot.
There is no socket.js file. I started the bot on my end and changed the port numbers to 1081 and everything works.
I made a screenshot so you can take a look at my setup.
from albot.
Ah. You're running it on localhost. That may be the issue.
Meanwhile, I'm reinventing the socket using send_cm
from albot.
@NexusNull I think I know the issue occurred. It's set up to run on client, not on a webserver. If you could release a version of bot-web-interface for webservers, that would be nice :) I think that should't be difficult, you just need to clone this repo and change it to have the actual socket.io file, not the client variety.
from albot.
The issue has nothing to do with the actual socket.io file, the project needs socket.io to comunicate between server and client. The problem is that repl.it remaps ports this causes things to break. There is a possibility that I can get it to work by combining socket.io into the "webserver". Webserver is in quotes because it isn't a real webserver either it's still node running express.
from albot.
@NexusNull I got it to work:
But I notice one thing missing: Where is the gold counter?
from albot.
Related Issues (14)
- parent.trade_sell is not defined HOT 1
- I found out how to not use eval. HOT 6
- Feature request: Add a Gold Counter & Code Cost Meter HOT 2
- Lag, or it's cousin, wireless lag. HOT 5
- Regen_hp missing HOT 1
- Error in raspberry pi 3b+ when running main HOT 8
- Where are you? HOT 1
- clean bwi code
- switch HTTPWrapper to axios
- crash
- Cannot figure out how to call switchServer func HOT 2
- NaN character width/height after respawn
- When killing code process character may stay on server HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from albot.