I believe that sharing a connection won't put you in the same network, but instead will put you inside a different network shared with the host machine, which will forward your packets to the actual network (I'm not sure it works like this, but from my last tests it seems so).
A better way to put your computer in the same network would be to (in windows) select both network adapters (the one connected to the network and the one connected to your computer), right clicking them and selecting "Bridge Connections". This will put you inside the same network as the computer you're connected to, and allow you to request an IP address through DHCP.