A few comments/questions:
- If you can ping and SSH into the Pi, then there's no issue with the cable. You didn't mention any sort of wireless connection on the Raspberry PI, so I'm assuming there isn't one.
- If you're attempting to set up a connection from the Pi to the Internet, you'll need to set up some sort of forwarding through it. One Windows, this is called "Internet connection sharing". On Linux, it's called "forwarding" and is typically done via IPTables. In either case, your PC is effectively an oversized version of your home router.
- If you can't ping the PC from the Pi, it's likely that you have a host-based firewall turned on, on the PC. That or you have issues with IP addresses. By this, I mean: you shouldn't use the same IP space for both sides of the PC. If one side uses 192.168.2.x, the other side should use 192.168.3.x (i.e., the third number changes). This means that the PC will have an address on the wireless network and a different one on the wired connection. Whatever IP address is on the PC's wired connection should be the defined gateway on the Pi.
I've probably missed a few things that others here will pick up on...
You are correct in your assumption that there is no WiFi dongle, which I'm going to pick up here shortly, but wanted to get the RPi going first.
These are tutorials I have tried:
Obviously, neither of which have worked for me. Do i need to enable Port Forwarding? I've never dealt with this kind of stuff before.
Any recommendations as to how I will go about get this hooked up? If not, do you know if RadioShack carries a WiFi "dongle" that is compatibility with the RPi, or does any one just work?
Pi on line.
Why do you want your PC as a bridge? What's wrong with ethernet direct to your router.
My Pi is 20metres from my router and connects to the internet via an ethernet-over-mains device, no problem.
Because I neither have an Ethernet net drop in my room, and have no desire to spend extra money right now to buy a 100 foot cable. I don't think my router is 20 metres away from my PC though. Haha.
It's difficult to do troubleshooting via forum but...
1) Ensure that /etc/network/interfaces (in the Pi) has the correct settings for eth0 (should look something like the following). Assuming that your wireless network addresses are 192.168.1.x and the wired addresses are 192.168.2.x, the entries (in the PI's /etc/network/interfaces file) should look something like:
iface eth0 inet static
address 192.168.2.5 <-- IP address for the RPi
gateway 192.168.2.1 <-- IP address of wired side of PC
dns-nameservers 192.168.1.1 <-- use whatever is reported when you run "ipconfig /all" on the PC
dns-search cox.net <-- optional. if used, employ whatever your ISP's domain is
Of course, be sure to remove my comments from the above. On the PC, you'll want to add a static IP to the wired NIC. In the example above, it'd be 192.168.2.1. Also, above assumes that OS is Raspbian or similar Debian-based variant.
2) On the PC, if you run ipconfig /all at the command line, you should see one gateway entry and one or more DNS entries (the IP address of your router and/or your ISP's DNS server).
3) Instead of trying to connect to (or ping) the PC from the Pi, trying pinging www.google.com or some other site out on the Internet. If you can do that, your connection sharing is probably configured correctly. If you still can't ping or connect to your PC, it's probably a firewall issue (on the PC).
That's about all that I can think of. The only connection sharing I've ever used was via Linux boxes. I've never used Windows connection sharing, though I've seen it used.
I'll go try that out!
Actually I would recommend that you buy a cheap dongle. Less problems no stress... Good Luck!!!
Okay so I received my raspberry Pi just yesterday, and I've been spending the majority of my time since trying to figure out how to get a connection to the internet. Currently my set up is a PC that is Wireless-ly connected to the Internet, and the my Raspberry Pi is connected to my PC via Ethernet Cable. I've changed a lot of settings however it has all been to no avail. Is the Ethernet Cable to old maybe? Do i need a crossover cable? I can ping my Raspberry Pi as well as SSH into it, however I can not ping my computer from the Pi. Any help?
So the solution to the problem was simple...So even agree editing all the files, assigning static ip address to the RPi, gateway, all the shabang didn't work, I took to looking for another tutorial. I thought I had attempted this solution before but to no avail. However it worked this time.
I went back through the settings I changed, basically turning them all to how they were in the beginning. Then located my Wi-Fi adaptor of the pc assigned the IPv4 and 6 to obtain automatically, and repeated that for the connection the RPi connected to. Then highlighted both connections, right clicked, arbd chose " Bridge Connections ". *Face Palm* Such a simple solution.
Thank You, everyone, that had tried to help me I actually learned some new stuff in the process!