Currently geth listens on all interfaces (0.0.0.0:30303). I need to bind the main port 30303 to only a specific network interface in the device, which would normally be accomplished by specifying a local source IP address to bind to. Can this be accomplished?
You need to use the flags --rpc and --rpcaddr to bind the IP address upon execution of geth.
For example, if you wanted to bind 30303 which is the default port to 10.0.2.18, use
When you run geth this is verified in the console with a message saying something like "Http connection established: http://your.ip."
If you need to change the port you can use both flags
--rpcaddr 10.0.2.18 and