Click here to Skip to main content
15,664,808 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: php that runs on Debian 11 and connects to another machine on the network. Pin
k505413-Oct-22 7:35
mvek505413-Oct-22 7:35 
Since you're using http then that would be port 80. If you've installed a web server on PC2, then you may already have port 80 open. You can check to make sure that the port is open using nc
Shell
nc -z -w 1 IpPC2 80; echo $?
$? is the return value of the last command, so if it's 0 then the connection was successful. Anything other than 0, and the connection failed. Make sure you've got a web server running on PC2. You can do that using netstat
Terminal
[k5054@localhost: ~$ sudo netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/init
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      623/sshd: /usr/sbin
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      659/cupsd
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      664/postgres
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1001/exim4
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      1422/sshd: k5054@pt
tcp6       0      0 :::111                  :::*                    LISTEN      1/init 
tcp6       0      0 :::22                   :::*                    LISTEN      623/sshd: /usr/sbin
tcp6       0      0 ::1:631                 :::*                    LISTEN      659/cupsd
tcp6       0      0 ::1:5432                :::*                    LISTEN      664/postgres
tcp6       0      0 ::1:25                  :::*                    LISTEN      1001/exim4
tcp6       0      0 ::1:6010                :::*                    LISTEN      1422/sshd: k5054@pt
You want to look for something listening on port 80 - which I do not have running in the above screen grab
Keep Calm and Carry On

GeneralRe: php that runs on Debian 11 and connects to another machine on the network. Pin
Member 1579676014-Oct-22 1:53
Member 1579676014-Oct-22 1:53 
AnswerRe: Removing unneeded OS partitions Pin
Jeremy Falcon2-Nov-22 14:10
professionalJeremy Falcon2-Nov-22 14:10 
Questiongrub-rescue flashes then grub menu Pin
tumuxoyu5-Jul-22 23:52
tumuxoyu5-Jul-22 23:52 
QuestionBasic on shell ,Git and vagrant Pin
Ezikiel Odutola22-Jun-22 22:24
Ezikiel Odutola22-Jun-22 22:24 
AnswerRe: Basic on shell ,Git and vagrant Pin
Richard Deeming22-Jun-22 23:57
mveRichard Deeming22-Jun-22 23:57 
AnswerRe: Mutiboot grub - run last OS option - all Linux Pin
Richard MacCutchan26-May-22 21:46
mveRichard MacCutchan26-May-22 21:46 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Richard MacCutchan27-May-22 21:53
mveRichard MacCutchan27-May-22 21:53 
AnswerRe: Mutiboot grub - run last OS option - all Linux Pin
Gerry Schmitz27-May-22 8:06
mveGerry Schmitz27-May-22 8:06 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Gerry Schmitz28-May-22 7:47
mveGerry Schmitz28-May-22 7:47 
AnswerRe: Running file properties... Pin
Richard MacCutchan30-Apr-22 5:07
mveRichard MacCutchan30-Apr-22 5:07 
AnswerRe: Running file properties... Pin
trønderen30-Apr-22 8:30
trønderen30-Apr-22 8:30 
GeneralRe: Running file properties... Pin
trønderen2-May-22 1:58
trønderen2-May-22 1:58 
AnswerRe: How to correlate hci_tool commands with "blueZ" library functions ? Pin
Richard MacCutchan24-Mar-22 21:53
mveRichard MacCutchan24-Mar-22 21:53 
GeneralRe: How to correlate hci_tool commands with "blueZ" library functions ? Pin
Richard MacCutchan25-Mar-22 3:52
mveRichard MacCutchan25-Mar-22 3:52 
AnswerRe: How to find what name and where the (bluetooth) library is located? Pin
k505421-Mar-22 12:42
mvek505421-Mar-22 12:42 
AnswerRe: How to find what name and where the (bluetooth) library is located? Pin
Richard MacCutchan21-Mar-22 22:54
mveRichard MacCutchan21-Mar-22 22:54 
AnswerRe: How to find what name and where the (bluetooth) library is located? Pin
Member 157889596-Oct-22 1:24
professionalMember 157889596-Oct-22 1:24 
AnswerRe: How to run ./configure - bluez Pin
Richard MacCutchan13-Mar-22 6:43
mveRichard MacCutchan13-Mar-22 6:43 
AnswerRe: How to run ./configure - bluez Pin
k505413-Mar-22 8:04
mvek505413-Mar-22 8:04 
QuestionLinux IDE Pin
Dr.Walt Fair, PE15-Feb-22 12:34
professionalDr.Walt Fair, PE15-Feb-22 12:34 
AnswerRe: Linux IDE Pin
Greg Utas15-Feb-22 13:41
mveGreg Utas15-Feb-22 13:41 
GeneralRe: Linux IDE Pin
DrWalter PE26-Feb-22 5:10
professionalDrWalter PE26-Feb-22 5:10 
AnswerRe: Linux IDE Pin
Sam Hobbs27-Oct-22 19:34
Sam Hobbs27-Oct-22 19:34 
GeneralRe: Linux IDE Pin
Richard Deeming27-Oct-22 21:07
mveRichard Deeming27-Oct-22 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.