Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jasinlee on December 08, 2012, 03:52:55 AM



Title: Help with port forwarding to enable bitcoind
Post by: jasinlee on December 08, 2012, 03:52:55 AM
I am attempting to setup a Virtual Machine with ubuntu running bitcoind but I keep on running into issues getting the port forwarding to function properly. I need to open up 8332 on a westell A90-750022-07, but the router will only open up port 22 for the ssh to function. I tried the pfconfig program from portforward.com and it does not seem to open the ports either when I test it on canyouseem.org or any other port test site. Any suggestions?


Title: Re: Help with port forwarding to enable bitcoind
Post by: Danijel Habek on December 08, 2012, 07:32:11 AM
Did you set static IP address for your VM or does it use DHCP?
Which virtualization software you're using?
How did attach network adapter for the VM (ie. NAT, internal, host-only...in VirtualBox)?


Title: Re: Help with port forwarding to enable bitcoind
Post by: jasinlee on December 08, 2012, 02:47:00 PM
I use no-ip.org for the static IP, I am not huge on networking so I will answer as best I can. I use virtualbox. In virtualbox it is on a bridged connection in the settings, this was the only method I could figure out to get it to even gain a connection. I am using centurylink as my provider, I dont think they block ports, but it seems like they might and just dont know it.


Title: Re: Help with port forwarding to enable bitcoind
Post by: Danijel Habek on December 08, 2012, 11:46:39 PM
I use no-ip.org for the static IP, I am not huge on networking so I will answer as best I can. I use virtualbox. In virtualbox it is on a bridged connection in the settings, this was the only method I could figure out to get it to even gain a connection. I am using centurylink as my provider, I dont think they block ports, but it seems like they might and just dont know it.

I mean static IP address for your VM OS intranet, not the public one.
Public IP is not relevant right now, until you configure your router to forward the port to the VM.
After you successfully forward needed port, then you can access the service running on that port using your public ip, ie. jasinlee.no-ip.org:8080.
Also, I don't believe your ISP is blocking port 8332, but I may be wrong there.
Please check if you have enabled your router firewall. You may configure it to allow incoming and outgoing traffic on port 8332 if it is enabled.

What I'm suggesting for you to try is to set up a static IP on your VM using network manager (network icon near the clock in gnome ubuntu) menu or edit your /etc/network/interfaces to static address of your network.
Adjust the IP addresses to your network/subnet, and then try to configure your router to forward port 8332 to the static IP that you've set in your VM OS.
Leave the Virtualbox  network adapter setup as bridged connection.

/etc/network/interfaces example for static IP address

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 192.168.1.10
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 192.168.1.1

Try and let me know if you've made it.


Title: Re: Help with port forwarding to enable bitcoind
Post by: jasinlee on December 09, 2012, 02:06:16 AM
Will be tinkering with it for the next few days will test it out to try and get it working.