04-14-2014
Could you configure one of them as a proxy server for the other?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I running HPUX 11.0,
Netscape gives me an error "Unable to locate Server" when using a www.something.com address.
If I use an IP address I get past the router and onto the Internet.
My workstation can get to the Router @ 192.168.0.1 and also it's local APACHE server.
I have DHCP enabled... (8 Replies)
Discussion started by: johnalt
8 Replies
2. Slackware
I tried unsuccessfully to set up the internet on slackware . I ran
"netconfig" and follow all the steps like to enter ip address dns server subnet mask and default gateway . I saved the configuration and reboot the computer with no results . When im doing this under my pc works fine but first... (4 Replies)
Discussion started by: exhumation
4 Replies
3. Linux
HI,
Am using GPRS ( MOB # 3230 ) internet connection in windows
Hw to use internet r connect in linux.. ( Red Hat Linux Ver.10 )
Please help me..
Thanks in adv.. (1 Reply)
Discussion started by: bharath raja
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
Iam using BSNL broad band connection and i have installed two OS Xp & Sun solaris -x86 on my machine.Iam able to use INTERNET on windows Xp but not able to do it on solaris x86.
I have tried using DHCP concept as well as sys-unconfig command in solaris but no results.
When i use... (5 Replies)
Discussion started by: jayaprakash
5 Replies
5. Solaris
Hi friends
recently i have installed SXDE 1/08 into my machine,and i installed wifi driver also
its working fine,Recently i was unable to connect to Internet,I have not changed any configurations and any installations,thing is that i got my iwk0 interface is UP and IP address also and i can... (6 Replies)
Discussion started by: srinivas2828
6 Replies
6. UNIX for Dummies Questions & Answers
Hi Gurus,
Good morning .
I have a railwire internet connection(dial up).I am able to access internet in windows xp .but in windows xp every time i restart my pc i have to manually right click the "railwire"icon and then click "connect, after this i am just getting connected to the internet. But... (4 Replies)
Discussion started by: sanjay.login
4 Replies
7. Linux
Hi,
Can someone guide me regarding how to connect to internet.
what are steps?
Thanks in advance (2 Replies)
Discussion started by: naren nandale
2 Replies
8. Virtualization and Cloud Computing
I have installed Oracle VM virtual box on Windows 7 and using LINUX (backtrack 5) as my virtual OS. The problem is i'm unable to connect to internet from my virtual OS. i'm using USB dongle (mobile broad band) to connect to internet from my host OS windows 7.
I tried setting NAT in VM settings... (0 Replies)
Discussion started by: Arun_Linux
0 Replies
9. Red Hat
Hello,
I just installed CentOS 7 (Server with GUI) and guess what I could install Virtual Box Guest additions without installing any extra package/software which is great news !
Now bad news or not so great news.
My Host OS is Windows 10, Virtual Box is the virtualization software. CentOS7-1... (0 Replies)
Discussion started by: bluemind2005
0 Replies
10. Linux
Hello, I installed FreeBSD 10.3 on AQEMU. I can't connect to internet in none
of the modes of "Default, User-Mode Networking" and "TUN/TAP Networking".
I am able to ping my host in the TAP networking mode (192.168.1.33 which is my
IP addr in guest), but getting 'no route to host' for any... (1 Reply)
Discussion started by: temp-usr
1 Replies
LEARN ABOUT PHP
socket-context-options
SOCKET-CONTEXT-OPTIONS(3) 1 SOCKET-CONTEXT-OPTIONS(3)
Socket context options - Socket context option listing
Socket context options are available for all wrappers that work over sockets, like tcp, http and ftp.
o $bindto
- Used to specify the IP address (either IPv4 or IPv6) and/or the port number that PHP will use to access the network. The syntax
is ip:port for IPv4 addresses, and [ip]:port for IPv6 addresses. Setting the IP or the port to 0 will let the system choose the IP
and/or port.
Note
As FTP creates two socket connections during normal operation, the port number cannot be specified using this option.
o $backlog
- Used to limit the number of outstanding connections in the socket's listen queue.
Note
This is only applicable to stream_socket_server(3).
+--------+-----------------+
|Version | |
| | |
| | Description |
| | |
+--------+-----------------+
| 5.3.3 | |
| | |
| | Added backlog. |
| | |
| 5.1.0 | |
| | |
| | Added bindto. |
| | |
+--------+-----------------+
Example #1
Basic $bindto usage example
<?php
// connect to the internet using the '192.168.0.100' IP
$opts = array(
'socket' => array(
'bindto' => '192.168.0.100:0',
),
);
// connect to the internet using the '192.168.0.100' IP and port '7000'
$opts = array(
'socket' => array(
'bindto' => '192.168.0.100:7000',
),
);
// connect to the internet using the '2001:db8::1' IPv6 address
// and port '7000'
$opts = array(
'socket' => array(
'bindto' => '[2001:db8::1]:7000',
),
);
// connect to the internet using port '7000'
$opts = array(
'socket' => array(
'bindto' => '0:7000',
),
);
// create the context...
$context = stream_context_create($opts);
// ...and use it to fetch the data
echo file_get_contents('http://www.example.com', false, $context);
?>
PHP Documentation Group SOCKET-CONTEXT-OPTIONS(3)