Select to view content in your preferred language

Portal for ArcGIS Install

351
4
Jump to solution
07-31-2024 09:58 AM
Sunnywaygis
Regular Contributor

Hi There, I am in process of installing Portal for ArcGIS (10.8.1) and have two questions:

1. How do I check if port 7080, 7443 are open on the Portal server?
2. Do I need to have https binding along with SSL Cert in place before I install the Portal or can I do this later?

Appreciate your feedback 

Thanks  

0 Kudos
1 Solution

Accepted Solutions
CodyPatterson
Frequent Contributor

Hey @Sunnywaygis 

Along with George's response, I have a PowerShell script that lets you check the ports as well, this does not require a device listening on that port as it temporarily places one in. This lets you run a command such as:

netstat -an | findstr :7443

Which allows you to find the port that you have active, if nothing is listening on that port, then you will not get a response.

First is when listening, second without listeningFirst is when listening, second without listening

PowerShell script:

$port = Read-Host "Enter Port Number"

$listener = [System.Net.Sockets.TcpListener]::new([System.Net.IPAddress]::Any, $port)
$listener.Start()

Write-Host "Listening on port $port..."

# Script will need to continue running to enable listener
try {
    while ($true) {
        $client = $listener.AcceptTcpClient()
        $stream = $client.GetStream()
        
        $reader = [System.IO.StreamReader]::new($stream)
        $writer = [System.IO.StreamWriter]::new($stream)

        # Reads any incoming data, optional use, Test-NetConnection will send blank data
        $data = $reader.ReadLine()
        Write-Host "Received data: $data"

        # Optional response to data
        $writer.WriteLine("Connection works, data received")
        
        # Close the connection
        $client.Close()
    }
}
finally {
    $listener.Stop()
}

 

For your question about the SSL certificates, you do not need to have one in order to get your Portal up and going, that is what I did in order to enable HTTP using a self-signed certificate. As George said, you will be better off if you start with a CA signed certificate immediately.

Cody

View solution in original post

4 Replies
George_Thompson
Esri Notable Contributor

Just for awareness, Enterprise 10.8.1 is about to enter Mature support tomorrow (8/1/2024): https://support.esri.com/en-us/products/arcgis-enterprise/life-cycle

I would highly recommend looking to install at least 10.9.1 or newer......

You can check the ports with telnet: https://www.wikihow.com/Check-if-a-Port-Is-Opened

I would recommend binding the SSL cert before install / configuration of ArcGIS Enterprise. Will prevent future SSL issues and rework; https://enterprise.arcgis.com/en/portal/10.8/administer/windows/enable-https-on-your-web-server-port...

Hope this helps!

--- George T.
Sunnywaygis
Regular Contributor

Thanks George for your detailed note and yes we are migrating to newer version soon. I just need to configure this env for few months. 

Thanks again 

 

0 Kudos
CodyPatterson
Frequent Contributor

Hey @Sunnywaygis 

Along with George's response, I have a PowerShell script that lets you check the ports as well, this does not require a device listening on that port as it temporarily places one in. This lets you run a command such as:

netstat -an | findstr :7443

Which allows you to find the port that you have active, if nothing is listening on that port, then you will not get a response.

First is when listening, second without listeningFirst is when listening, second without listening

PowerShell script:

$port = Read-Host "Enter Port Number"

$listener = [System.Net.Sockets.TcpListener]::new([System.Net.IPAddress]::Any, $port)
$listener.Start()

Write-Host "Listening on port $port..."

# Script will need to continue running to enable listener
try {
    while ($true) {
        $client = $listener.AcceptTcpClient()
        $stream = $client.GetStream()
        
        $reader = [System.IO.StreamReader]::new($stream)
        $writer = [System.IO.StreamWriter]::new($stream)

        # Reads any incoming data, optional use, Test-NetConnection will send blank data
        $data = $reader.ReadLine()
        Write-Host "Received data: $data"

        # Optional response to data
        $writer.WriteLine("Connection works, data received")
        
        # Close the connection
        $client.Close()
    }
}
finally {
    $listener.Stop()
}

 

For your question about the SSL certificates, you do not need to have one in order to get your Portal up and going, that is what I did in order to enable HTTP using a self-signed certificate. As George said, you will be better off if you start with a CA signed certificate immediately.

Cody

Sunnywaygis
Regular Contributor

Thanks Cody, This script worked like a charm, I can see the first response 👍 I will get started with CA signed certificate, just to be on safe side. 

0 Kudos