02-12-2006
Make sure that /etc/defaultrouter contains the IP address of (you guessed it) your default router.
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. Solaris
I have an ultra 10.. running solaris 9 - and have a dsl internet connection that I currently use for my windows pc's through a router.
I have connected the ultra 10 to the router - and the router has assigned me an ip through dhcp.. and I can connect to the other pc's on my network and they can... (1 Reply)
Discussion started by: frustrated1
1 Replies
3. Solaris
Hi,
I am new to Solaris just migrating from Windows XP.
I want to connect to internet but I have problem with configuration.
My ISP has provided me a router.I get internet connection through DHCP.
I don't know any proxy or subnetmask or any IP address that requires during configuration of... (1 Reply)
Discussion started by: pappu2008
1 Replies
4. Solaris
Hi I installed solaris developer edition 1/08 today.I want to connect to Broadband internet through my ADSL 2+ Modem/Router with a username and password.
plz help in this case,I am new to sun solaris:confused:
the modem itself is a router it worked well on ubuntu and red hat (3 Replies)
Discussion started by: santugvd
3 Replies
5. Solaris
Hi !!!!
i am very new in solaris.
at present i am using windows XP for internet connection.
ISP has given me user name and password for connecting to the internet.
it is a brodband DSL connection.
but i am unable to connect to the internet in solaris.
i am using one static ip given by the... (4 Replies)
Discussion started by: alamin
4 Replies
6. 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
7. UNIX for Dummies Questions & Answers
I recently installed solaris 10 on a seperate hard disk in my desktop pc. My first hard disk is running windows xp.
I am totally new to solaris. Please help me to connect to the internet through solaris 10. I read a few threads, and re-installed solaris 10 by giving 'Yes' to the question that... (1 Reply)
Discussion started by: hari86av
1 Replies
8. Solaris
Dear freinds...
I downloaded solaris for x86 and was able to configure the lan correctly.. I can ping and share with other destops through lan... but still I can't connect to internet ? can you please help..
I put my default gateway which is 192.168.1.1 to /etc/defaultrouter but with no use..... (13 Replies)
Discussion started by: yahyaaa
13 Replies
9. Solaris
how to configure to connect to internet on solaris 9 ?
please help (1 Reply)
Discussion started by: sudhiroracle
1 Replies
10. Solaris
Hiii,
My soalris 10 OS is running on VM ware. I have internet to my windows7 OS, can someone please help me to get connected my internet connection to my Solaris OS which is running on VMware.
thanks & regards,
Bhagi. (2 Replies)
Discussion started by: bhargav90
2 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)