Local Port check

Discussion in 'PHP' started by 143mahi, Jul 16, 2012.

  1. #1
    Hi friends i want to change my localhost port,Generally web server runs at the port of 80 i want to change my apache server with another port.. so i want to check which port are free in my system. How to check which ports are free..?
    Thanks in advance..
     
    143mahi, Jul 16, 2012 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    bartolay13, Jul 16, 2012 IP
  3. jeet25

    jeet25 Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can different port with IP address in virtual host tag , so you can check different request from different port
     
    jeet25, Jul 17, 2012 IP
  4. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #4
    Make an educated guess. The port 98768 isn't going to be in use.
     
    BRUm, Jul 21, 2012 IP
  5. 143mahi

    143mahi Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for your suggestion... Read the question and reply it correctly Mr Brum
     
    143mahi, Jul 22, 2012 IP
  6. azizrattani

    azizrattani Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Simple you can go to Apache folder and inside that you will have conf folder and then you edit your httpd.conf, you will have port "Listen 80" so change with your desire one like "Listen 8080" and "ServerName localhost:80" to "ServerName localhost:8080" you will now have to access your server with "http://localhost:8080" or what ever port you have set.
     
    azizrattani, Jul 23, 2012 IP
  7. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #7
    You said you want to know what ports are free, I can give you a script I made in PHP that is a port scanner. My previous suggestion still stands, you can choose a high number and 99% of the time it will be free. Where's the problem?
     
    BRUm, Jul 23, 2012 IP