Click here to Skip to main content
15,867,568 members
Home / Discussions / Linux Programming
   

Linux Programming

 
AnswerRe: execute multiple commands assigned to a single variable - bash Pin
k505417-Oct-22 4:38
mvek505417-Oct-22 4:38 
GeneralRe: execute multiple commands assigned to a single variable - bash Pin
Richard MacCutchan17-Oct-22 5:10
mveRichard MacCutchan17-Oct-22 5:10 
QuestionMessage Closed Pin
13-Oct-22 8:04
Member 1496877113-Oct-22 8:04 
AnswerRe: BlueZ / bluetoothctl - where to look for specific ( mouse events? ) source code? Pin
Richard MacCutchan13-Oct-22 22:06
mveRichard MacCutchan13-Oct-22 22:06 
Questionphp that runs on Debian 11 and connects to another machine on the network. Pin
Member 1579676013-Oct-22 4:52
Member 1579676013-Oct-22 4:52 
AnswerRe: php that runs on Debian 11 and connects to another machine on the network. Pin
k505413-Oct-22 5:07
mvek505413-Oct-22 5:07 
GeneralRe: php that runs on Debian 11 and connects to another machine on the network. Pin
Member 1579676013-Oct-22 7:03
Member 1579676013-Oct-22 7:03 
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 
QuestionMessage Closed Pin
6-Oct-22 7:31
Member 149687716-Oct-22 7:31 
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 
QuestionMessage Closed Pin
26-May-22 5:35
Member 1496877126-May-22 5:35 
AnswerRe: Mutiboot grub - run last OS option - all Linux Pin
Richard MacCutchan26-May-22 21:46
mveRichard MacCutchan26-May-22 21:46 
GeneralMessage Closed Pin
27-May-22 6:50
Member 1496877127-May-22 6:50 
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 
GeneralMessage Closed Pin
28-May-22 6:46
Member 1496877128-May-22 6:46 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Gerry Schmitz28-May-22 7:47
mveGerry Schmitz28-May-22 7:47 
QuestionMessage Closed Pin
30-Apr-22 4:25
Member 1496877130-Apr-22 4:25 
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 
GeneralMessage Closed Pin
1-May-22 15:15
Member 149687711-May-22 15:15 

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.