stud4fun
New Member
- Joined
- Dec 21, 2012
- Messages
- 717
- Reaction score
- 4
In its current form, without modification - what Gniller did, yes they have to run on the same P.C.
I feel that opening yet another port on a local computer may not be the wisest of ideas, as I have done absolutely no security testing or research relating to the WCF based HTTP service used here, and have no clue what vulnerabilities, if any, exist against a WCF based HTTP server. However, I do know that not everyone runs with their machine behind a firewall.
But for those two do, or even have multiple machines running on a private network with NAT, etc, having the leader/follower service bound to a particular IP/port would be beneficial.
Regardless, if you want to change this:
Open SimpleFollow.cs
Find this:
Code:private static Uri serverUri = new Uri("http://localhost:10920");
and change "localhost" to the internal IP of the leader bot; for example:
Code:private static Uri serverUri = new Uri("http://192.168.0.1:10920");
Of course, this might become a pain in the ass if you're using DHCP, but if you're not running on a school network or anything it should be simple enough to get a static private IP for your local network.
P.S. If you are NOT running behind some sort of firewall/router, and you don't trust every other machine on your network, I wouldn't do this.
cheers,
rrrix
I am running on 1 x VMware inside of my PC. I changed IP address in my leader bot running in VMware according to your suggestion but I still get this error
on my follow bot with this error. I replaced "localhost" with IP number but it still say "local host"
[SimpleFollow] Initializing Client Service connection to http://localhost:10920/Follow
[SimpleFollow] ERROR: Could not get an update from the leader using http://localhost:10920/Follow. Is the leader running?
[SimpleFollow] Out of game, Waiting for leader
Bot Thread Ended. Was this requested?
EDIT: Fixed the problem. It is running good thanks
Last edited: