The code which works fine locally is throwing an error when instance is created at AWS,I am very novice at it ,I have installed chrome driver and chrome in the instance..any help is highly appreciated below is the code until error
import logging
from kiteconnect import KiteConnect
from datetime import datetime,timedelta
import pandas as pd
from time import sleep
from selenium import webdriver
import undetected_chromedriver as uc
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import pyotp
driver=uc.Chrome()
error is "selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:41187 from chrome not reachable"