Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to ping (technically, i need to connect to port 80) a PC that is connected to a second PC (through crossover cable), that's connected to a Router.

I have a little sketch of what I'm trying to do, I'll use it as a base for the explanation.

Network DIagram

  • The PC (A) is connected to (B) through Crossover cable.
  • (B) is connected to the router through wifi (though it doesn't really make a difference if its a wired connection)
  • (C) is connected to the router as well, through a wireless connection.

I want to know how can I ping the PC (A) from (C). Would manually setting B, and A's IP in the same range, and Subnet to the same values, make PC (A) appear af it was connected directly to the router?.

Thanks in Advance, Jesus.

share|improve this question
    
Sounds like you're looking for Internet Connection Sharing, or something similar. Search Super User for that term, and see if that helps. –  Iszi May 9 '12 at 21:14
    
It makes a huge difference if the connection is wired or wireless. You can bridge two wired connections, but you can't bridge a wired connection to a wireless client connection. –  David Schwartz May 9 '12 at 22:06
    
What I meant is that i can connect it with an ethernet cable if needed :). Thanks anyways.. By the way, I don't necessarily need connection to the internet on any of the pc's, I just need them to be on the same network. –  Jesús Otero May 10 '12 at 13:13

2 Answers 2

up vote 4 down vote accepted

As sm11963 says, you can setup your computer B. But you need to understand some network routing basics. And this is overkill for only one port.

Else, just use port forwarding.
For Linux this is done with iptables.
For Windows this is done with a port forwarding software. Google will give you some.
I use this one: http://www.quantumg.net/portforward.php (I use the old command line version).
This one http://www.rouvali.com/index.php?id=53 also seems nice.

With some Windows versions:
Administrative Tools
Routing and Remote Access
ServerName
IP Routing
NAT/Basic firewall
Right-click on your NIC
Properties
Services & Ports Add...
Enter Incoming Outgoing Port and IP of the workstation

With Windows 2008:

netsh interface portproxy add v4tov4 listenport=1234 listenaddress=192.168.0.1 connectport=443 connectaddress=192.168.0.2
share|improve this answer
    
Thanks, I will test this and report back if needed. –  Jesús Otero May 10 '12 at 13:14

I've never done this myself but you can setup your PC B as a bridge, by bridging your wifi connection and the connection to PC A. You do this by going into the network connection panel (on PC B) and select your wifi and crossover connection then right click select "bridge connections".

You may have to manually set the ip address on computer A, but that should work. Although, it should work with an Ethernet cable, it may also work with a crossover. A crossover cable is usually only needed for two computer networks and that's not what you want here.

share|improve this answer
1  
Windows XP Bridging, Windows 7 Bridging. Crossover cables don't make much difference as most Ethernet interfaces are Auto-MDIX nowadays. –  RedGrittyBrick May 9 '12 at 21:44
1  
That won't work. The access point is required by the WiFi specification to reject the packets because their source hardware addresses won't be the hardware address of any of its clients. You can't bridge a wired connection to a wireless connection when the wireless connection is as a client to an access point. (That's one of the reasons for WDS, even without repeating.) –  David Schwartz May 9 '12 at 22:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.