How to connect the linux JBOSS VM on port 8080

Lekha 0 Reputation points

I tried the curl -v http://VMhostname:8080 in VM Bastion host.

It says
Trying http://VMhostname:8080...


connect to xx.xx.xx.xx port 8080 failed: Connection refused

Failed to connect to AzureVM1 port 8080: Connection refused

Closing connection 0 curl: (7) Failed to connect to VMhostname port 8080: Connection refused

How to connect on port 8080. I see it is listening on i.e the localhost. But I want to access with hostname. How to set the service listen. I am unable to find particular conf file.

I created another VM and when I checked it is not listening on port 8080. How do I make it listen to port 8080 and how do I get it connected to 8080?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,974 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 46,211 Reputation points

    Did you configure the NSGs setting for inbound port rules (this one shows port 9990, but change it to 8080)?

    Optional: Verify the functionality of the deployment

    1. On the deployment page, select Deployment details to expand the list of Azure resource deployed. Select network security group jbosseap-nsg to open its details page.
    2. Under Settings, select Inbound security rules. Select + Add to open Add inbound security rule panel for adding a new inbound security rule.
    3. Fill in 9990 for Destination port ranges. Fill in Port_jbosseap for Name. Select Add. Wait until the security rule created.
    4. Select X icon to close the network security group jbosseap-nsg details page. You're switched back to the deployment page.
    5. Select the resource ending with -nic (with type Microsoft.Network/networkInterfaces) to open its details page.
    6. Under Settings, select IP configurations. Select ipconfig1 from the list of IP configurations to open its configuration details panel.
    7. Under Public IP address, select Associate. Select Create new to open the Add a public IP address popup. Fill in jbosseapvm-ip for Name. Select Static for Assignment. Select OK.
    8. Select Save. Wait until the public IP address created and the update completes. Select the X icon to close the IP configuration page.
    9. Copy the value of the public IP address from the Public IP address column for ipconfig1. For example, Screenshot of public IP address assigned to the network interface.
    10. Paste the public IP address in an Internet-connected web browser, append :9990, and press Enter. You should see the familiar Red Hat JBoss Enterprise Application Platform management console sign-in screen, as shown in the following screenshot. Screenshot of JBoss EAP management console sign-in screen.

    If this is helpful please accept answer.

    0 comments No comments