can you guys check if this code works in Linux/unix? with step 3that I provided below, if it is not working can you guys fix andupload the screen shot?
Task3. Try these two updated programs (server and client) with aport (which is available).
** For example, to find a port (between 30000 and 30999) whichis available, with netstat command.
netstat -aont | grep “`hostnname -i`:30[0-9][0-9][0-9] “
Note: the back-tick (backward singlequotation mark to run the command on the run).
Client.c:-
=========
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include <stdlib.h>
#include<time.h>
int main(int argc,char *argv[])
{
int clientSocket;
char *IpAddress;
int Portno;
char response_buffer[100];
char request_message[]=”Hi please Accept”;
char buf[100];
time_t curtime;
struct tm *loc_time;
struct sockaddr_in serverAddr;
socklen_t addr_size;
if(argc<2)
{
printf(“nPlease Pass IP
PayPal Gateway not configured
PayPal Gateway not configured