But, wouldn't that mean I'll have to keep my desktop on to have internet on Laptop?
I'm posting more details which might help you. Here are some commands which i ran and their results
Please note here that I have also tried using network manager (added in slackware 14.1) without success. The commands i ran for networkmanager are:
Also, I tried using wicd with similar issue. And, I could not find a way to clone MAC on wicd GUI.
What i think is that if Hathway had not restricted the connection to one pc (i.e., by storing MAC address and giving connection to that PC only), slackware would connect without any problems. But because I have to change my laptop's MAC address to match my other computer's, maybe slackware isn't reading it correctly (i.e., it's trying to connect by default MAC), whereas Puppy Linux did.
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)
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)
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)
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)
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)
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)
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)
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)
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)