Can't establish connection with Port 8080 while using web client application

Hello,

I'm modifying web client arduino example code.
My server runs on port 8080.
When I run the program, I get

Connecting...
Connection failed..
Disconnecting.

It works fine when I search for Google or some other websites on port 80. Check the attached code.

Have also tried disabling the firewall.

Any suggestions would be welcome.

Thanks.

WebClient1.ino (2.55 KB)

Do you have a SD card inserted in your ethernet shield?
If you do, try to remove it and reboot your Arduino. Sometimes an unused SD card makes the whole process fail.

Thank you for the reply.
No, SD card is not inserted. The code is running without the SD card

Can you access the server with any other computers on the localnet using port 8080?