Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Cannot connect to custom ports on Linux Azure VM

$
0
0

Hello,

I am having difficulty connecting to custom ports such as 80 or 800 from my home PC into my Azure VM:

  1. I have created a <g class="gr_ gr_119 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="119" id="119">linux</g> VM in Azure (Ubuntu 16.04.5 LTS). A network interface, a network security group and a virtual network are automatically created.
  2. I have created inbound rules to open ports that I could connect to from the outside: port 80, port 8888 and port 800
  3. I only have one single network security group for all my rules
  4. I can ping the public IP address of my home PC from my VM in Azure
  5. I can ssh into the <g class="gr_ gr_118 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="118" id="118">vm</g>, and <g class="gr_ gr_123 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" data-gr-id="123" id="123">obviously</g> I can connect to port 22 of the VM from my home PC
  6. I cannot connect to any other port than 22.
  7. I use <g class="gr_ gr_117 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="117" id="117">psping</g> from my home PC to test the ports

 

I would like to understand what am I doing wrong

Netstat results from  my VM:

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address           Foreign Address         State

tcp        0      0 *:ssh                   *:*                     LISTEN

tcp        0      0 10.0.0.4:45844          169.254.169.254:http    ESTABLISHED

tcp        0    172 10.0.0.4:ssh            13.90.148.175:25024     ESTABLISHED

tcp        0      0 10.0.0.4:45692          169.254.169.254:http    TIME_WAIT

tcp        0      0 10.0.0.4:45550          169.254.169.254:http    TIME_WAIT

tcp6       0      0 [::]:ssh                [::]:*                  LISTEN

udp        0      0 *:bootpc                *:*

 

Rules


Thanks 

<g class="gr_ gr_493 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="493" id="493">YorgZ</g>


“It doesn't matter if the water is cold or warm if you're going to have to wade through it anyway”


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>