user39057: I am simply trying to send a simple HTTP request from an Arduino Uno with w5500 Ethernet Shield to a local server running on my PC. 
The two are connected via a crossover ethernet cable and I am able to host a server on the Arduino that is accessible from my PC browser. Now I am trying to use the PC as a server and the Arduino as the client.
Using the simple WebClient example, I can send a successful GET request to google.com from the Arduino. 
Here is what I am trying that is failing: 
1 - Start a local server via running http-server in my command prompt. That successfully starts a server at 192.168.56.1:8080 that I can access via my browser
2 - Change the Web Client example to use 
IPAddress server(192,168,56,1); 

and change the port to 
if (client.connect(server, 8080)) 

3 - Run this Arduino sketch. The connection fails and I don't know why. I have allowed port 8080 full input access through the Windows firewall.
Any ideas?

user39057: The answer was simple. Instead of trying to connect to the IP address of the local server (192.168.56.1) I had to use the IP address of the ethernet connection between the Arduino and the PC (found using the ipconfig command on the command prompt). 

39057: <p>I am simply trying to send a simple HTTP request from an Arduino Uno with w5500 Ethernet Shield to a local server running on my PC. </p>

<p>The two are connected via a crossover ethernet cable and I am able to host a server on the Arduino that is accessible from my PC browser. Now I am trying to use the PC as a server and the Arduino as the client.</p>

<p>Using the simple WebClient example, I can send a successful GET request to google.com from the Arduino. </p>

<p>Here is what I am trying that is failing: </p>

<p>1 - Start a local server via running http-server in my command prompt. That successfully starts a server at 192.168.56.1:8080 that I can access via my browser</p>

<p>2 - Change the Web Client example to use </p>

<pre><code>IPAddress server(192,168,56,1); 
</code></pre>

<p>and change the port to </p>

<pre><code>if (client.connect(server, 8080)) 
</code></pre>

<p>3 - Run this Arduino sketch. The connection fails and I don't know why. I have allowed port 8080 full input access through the Windows firewall.</p>

<p>Any ideas?</p>
 39057: <p>The answer was simple. Instead of trying to connect to the IP address of the local server (192.168.56.1) I had to use the IP address of the ethernet connection between the Arduino and the PC (found using the ipconfig command on the command prompt). </p>
