Sometimes, when we are running some socket program, by connecting our machine to other machine, we face the problem of firewall. If the port is blocked, then we will not be able to transmit and receive, on the other hand both the codes will work fine with localhost (127.0.0.1)
In such cases, you can disable the firewall on temporary basis and permanent basis both. There are other options also like allowing tcp/udp connection on specific port, but I prefer this one:
to renable:
To make it permanent:
In such cases, you can disable the firewall on temporary basis and permanent basis both. There are other options also like allowing tcp/udp connection on specific port, but I prefer this one:
$service iptables stop
to renable:
$service iptables start
To make it permanent:
$chkconfig iptables off
$service iptables stop
No comments:
Post a Comment