I want to connect ethernet based on ip address

i want to connect multiple ethernet with ip address only not based on server . can anyone please tell me how can i do that? I have pasted the very basic connected code here.but instead of server.available() i want to connect using ip.Reason i want to connect multiple device at a same time which not support by Ethernet server.

#include <Ethernet.h>
#include <SPI.h>

// the media access control (ethernet hardware) address for the shield:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };  
//the IP address for the shield:
byte ip[] = { 10, 0, 0, 177 };    
// the router's gateway address:
byte gateway[] = { 10, 0, 0, 1 };
// the subnet:
byte subnet[] = { 255, 255, 0, 0 };


// telnet defaults to port 23
EthernetServer server = EthernetServer(23);

void setup()
{
  // initialize the ethernet device
  Ethernet.begin(mac, ip, gateway, subnet);

  // start listening for clients
  server.begin();
}

void loop()
{
  // if an incoming client connects, there will be bytes available to read:
  EthernetClient client = server.available();
  if (client) {
    // read bytes from the incoming client and write them back
    // to any clients connected to the server:
    server.write(client.read());
  }
}

how do you want to connect then ? you need a socket / a port and someone listening on that port...

can you clarify your intent?

what do you mean by "ethernet server"? a MAC address used by ethernet is hardcoded in the ethernet chip, not assigned when a connection is made

an IP address would be assigned by a domain name server (DHS) at startup

clients commonly connect to (e.g. web page) Zservers by specifying a IP address and port. port 80 is the http port used by web browsers.

a single process can support many different ports and many different clients on each port

as a client, my code has done

if (client.connect(host, port, THOUSAND_MSEC)) 

Thanks for your reply. I want to connect with wireless-ap-bridge-client or you can say ethernet router. The hardware specialist saying to connect by direct ip based instead of server. Please tell me how to do that?

when i connect to a Wifi access poinrt, i need to specify the name of the access point, the SSID and often a password, if required

if (WL_CONNECTED == WiFi.begin (ssid, pass)) 

Ethernet is strictly wires. sounds like you mean a Wifi router

I tried with same way but that not work.I think the reason behind not working is that it was set as client and that client side code will not worked.I tried the below code but that not worked. try to place in both section setup and loop.checked twice but that not work even not detected.
IPAddress ip(192, 168, 127, 177); // server
IPAddress mip(192, 168, 127, 151); // ip address of ap
if (mclient.connect(mip, 80)) {
if (mclient.available()) {
client = mclient;
}

  else if (!mclient.connected()) {
       client = server.available();
    }
}

yes wifi router.

ask the "hardware specialist" what that means... connect to what ? who is going to listen or wait for that incoming connection?

(the server is not an HTTP server)

how do you connect to the WiFi router?

they do not have any expertise on code. they donot have even a basic code.They only sell there product.

AWK-1137C Series is the product in which i want to run that code.

routers usually have a web interface - not always meant as an API but more for human interaction

do you mean you want to use the Arduino to talk to the router and configure it?
Arduino would be a client then, not a server

Why don't you just let the router do the work and stick with DHCP?

Or, you could go into the Router's management web page and assign static IP addresses to your devices based on their MAC addresses. Your stations would still connect via DHCP but get the static IP addresses that you assigned.

yes i have doing the same way please check the code i have shared above where u can find i trying to use the separate ip but it not working. even not able to detect [ if (mclient.connect(mip, 80)) { ]. i need both. 1-1 where the one display device(remote control type) to control each device (machine) and 1-n means 1 display device to run multiple (machine/device). when 1:1 it work fine but when 1:n it showing me wrong.

can anyone can give any sample code how to run client by ip not by server.

Moxa AWK-1137C Series?
That appears to be an Ethernet-to-WiFi Bridge. It allows your Ethernet equipment to join a WiFi network. IT IS NOT AN "Access Point" SO IT IS NOT A WiFi ROUTER.

https://www.moxa.com/en/products/industrial-network-infrastructure/wireless-ap-bridge-client/wlan-ap-bridge-client/awk-1137c-series

Introduction

The AWK-1137C is an ideal client solution for industrial wireless mobile applications. It enables WLAN connections for both Ethernet and serial devices, and is compliant with industrial standards and approvals covering operating temperature, power input voltage, surge, ESD, and vibration. The AWK-1137C can operate on either the 2.4 or 5 GHz bands, and is backwards-compatible with existing 802.11a/b/g deployments to future-proof your wireless investments. The Wireless add-on for the MXview network management utility visualizes the AWK's invisible wireless connections to ensure wall-to-wall Wi-Fi connectivity.

yes but in another end i have use AWK-1131A.using these 2 i am trying to connect and send request from A to C. Is not that work? As per the current one it working but 1:1 way when 1 trying for 1:n means 1131A to multiple AWK1137C it not working even when i am trying to call the multiple static ip address instead of server.

That code working for 1:1 with same setup
Ethernet.begin(mac, ip);
server.begin();
}
void loop() {
EthernetClient client = server.available();
if (client) {..... remaining code

but when i am using it for 1:n doesnot work and even not detected with same setup.

IPAddress ip(192, 168, 127, 177);
IPAddress mip(192, 168, 127, 151);
Ethernet.begin(mac, mip);
Ethernet.begin(mac, ip);
if (mclient.connect(mip, 80)) {
if (mclient.available()) {
client = mclient;
}

  else if (!mclient.connected()) {
       client = server.available();
    }
}

void loop() {
if (client) {
while (client.connected()) {
if (client.available()) {..... remaining code

I don't think you can run two separate IP networks on the same Ethernet interface. The TCP/IP library is mostly in the Ethernet Shield so if you want two networks you will need two shields. On one of them, you will have to move the Chip Select to a different pin so that the two Ethernet objects can talk to them separately.

i have tried to remove that(quoted) also later yet it not worked Ethernet.begin(mac, mip);
instead calling the 2 separate ip on the same Ethernet i call the second one mip when the ip not connected in if else statement.