Raspberry Pi, ICS and Windows 8 help

Lee au

Reputable
Aug 12, 2015
5
0
4,510
Hi all,

I'm struggling to sort out some network issues after having to change component of my network around to fix some streaming issues and I'm after a bit of quick help if I may please.

My (condensed) scenario is that I have a Raspberry Pi 2 running Kodi/XBMC in the bedroom, connected via EoP to my Windows 8.1 based Media PC (into ethernet card) located on the level below. The Media PC is then connected via Wireless dongle to my modem/router in yet another room (the joys of renting....).

Settings:
Raspberry Pi 192.168.0.4
Media PC: Ethernet = 192.168.0.5; Wifi = 192.168.0.6; Gateway = 192.168.0.1
Modem/Router 192.168.0.1

Subnet 255.255.255.0 on all devices

I have tried software bridging the two adapters on the Media PC via Windows ICS, however I'm struggling to get internet connectivity to the Rasp. Pi. I have tried changing the gateway on the Rasp. Pi to both 192.168.0.1 and .6, but with no luck. I'm hoping that this is possible via software rather than adding another switch or more devices, but I'm not very network experienced.

The only way I can be sure to get them running is to run the EoP into the modem/router - however this then means that it needs to stream from the Media PC via Wireless before hitting the Eop, so not fantastic.

I think I'm close to sorting this but it's not playing nice - any ideas or advice would be appreciated.

Thanks.



 
Thanks very much for the reply. I believe however I did try putting both the RPi and the Ethernet port on the Windows machine on DHCP, though I think the RPi was not given an IP address. I will certainly try this again today though.

As far as accomplishing the task, would ICS or bridging the connection on the windows machine be better?

Cheers
 
When using ICS, you don't bridge connections. Properly configured ICS should show following IP information (from IPCONFIG /all):
- WiFi adapter with IP address as assigned by the WiFi router, and default gateway set to the router
- Ethernet adapter with IP address of 192.168.x.1, in different network than WiFi adapter, and with no default gateway
- your RPi should get address like 192.168.x.2, from the same network as Ethernet adapter on the computer, with default gateway pointing to 192.168.x.1

I haven't set ICS recently, and the last time it was on Windows 7, but the process was straightforward.
 


Thanks again, but I dont have great news.

I have enables ICS on the Wifi adaptor. This set a static IP onto the LAN card, in the 168.x.x.x range, with subnet of 255.255.0.0 (different to Wifi card). I then set the RPi to DHCP.

This didn't work, as the RPi was not assigned an IP address, so I then tried changing the LAN card to DHCP, which gave a similar IP address as before.

Again, the RPi did not receive an address, so I also tried setting the RPi to a manually assigned IP in the same 168.x.x.x range, same subnet etc. Still nothing.

One thing that is important to me is that the RPi can be accessed from the main 192.168.0.x network, as we use our phones on Wifi as the remote control via http.

Eventually I may have to go and buy three powerline adaptors, but the Wife Approval Factor is way too low to do so so far.....

Do you have any other suggestions? Perhaps I'm not pointing the devices to the correct gateway?

Thanks again
 
I have made some progress, and the RPi can now connect to the internet and also the Media PC to stream.

The only problem remains is that I now cannot seem to access the RPi via smartphone as a remote.

Here are the current settings:

MEDIA PC

Wifi:

IP=192.168.0.6 (DHCP assigned)
Subnet=255.255.255.0
Gateway=192.168.0.1
Windows Internet Connection Sharing active

Ethernet:

IP=192.168.0.5 (Static)
Subnet=255.255.255.0
Gateway=192.168.0.1


RASPBERRY PI

IP=192.168.0.4 (Static)
Subnet=255.255.255.0
Gateway=192.168.0.5

I'm assuming that there is a problem port forwarding or routing from the phone to the RPi via the router... does this sound correct?
The remote app uses port 80.


 
Your RPi lives in separate world from your smartphone (being connected behind ICS), so while RPi can make outbound requests and will receive answers, it cannot accept incoming connections, in the same way as your friend from other side of the town cannot access your home PC behind the router.
 
Finally got it sorted. ICS wasn't the solution, so I went back with bridging the ethernet and WiFi NIC's, and after some fiddling got it to work.

Thanks all for your help.


MEDIA PC

Wifi: Bridged

Ethernet: Bridged

Bridge: IP= DHCP (Router reserved, 192.168.0.6)
Subnet=255.255.255.0
Gateway/DNS=192.168.0.1


RASPBERRY PI

IP=192.168.0.4 (Static)
Subnet=255.255.255.0
Gateway=192.168.0.1